emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 1e3b0f2: Improve doc strings of project.el


From: Theodor Thornhill
Subject: Re: master 1e3b0f2: Improve doc strings of project.el
Date: Fri, 19 Jun 2020 15:39:53 +0000


> A project could specify a list of major-modes, couldn't it?  That
> would generally derive from the project's "purpose" or "goal", for
> lack of a better word.  For example, a project where you build a
> program would have prog-mode or some of its descendants in the list,
> and perhaps also Texinfo and/or markdown for docs.  A project whose
> purpose is to write an essay or a blog or might use descendants of
> text-mode.  Etc., etc.

Yes, absolutely. But isn't this sort of what is intended with the
cl-defmethods used to assign a project?

I believe project.el to be a bit ambiguous, since it is both a generic
"wrapper" for a generic interface "project", but also an implementation of
the "vc" version of this interface. So the behaviour you suggest here is
easily done in say:

(cl-defmethod project-root ((project (head some-major-mode)))
  ...)

The version used now is merely saying: "Show me everything but the
things ignored in .gitignore."

Or am I misunderstanding you?

Theo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]