On 11/08/2015 09:11 AM, Stephen Leake wrote:
emacs-lisp-mode makes project-library-roots-function buffer-local,
which makes it language-specific. That's an argument for overriding the
default implementation of project-library-roots to do something more
useful. Which is what `project-library-roots ((project (head vc))' does,
for example. Which means that the behavior of projects in an elisp file
that happens to be in a vc directory is different from one that is not.
`project-library-roots ((project (head vc))' knows nothing of library
roots, however, aside from the local variable that's supposed to be set
by the user.
...
The root cause of this problem is trying to infer a project in an elisp
file. This makes sense in general, because an elisp file implies the use
of load-path, which is the main part of defining a project. A better way
is to provide a project-find-function that returns an elisp-project
object in elisp buffers;
That implies having to create a separate project implementation for
every language, making vc-project utterly useless.