GNU bug report logs -
#41572
28.0.50; [PATCH] Support plain project marked with file .emacs-project
Previous Next
Reported by: Zhu Zihao <cjpeople2013 <at> gmail.com>
Date: Thu, 28 May 2020 04:46:02 UTC
Severity: normal
Merged with 54228
Found in versions 28.0.50, 29.0.50
Fixed in version 29.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Another issue is people working on monorepos (often backed by Git)
sometimes want to split them into separate projects.
Either because they only work on a certain part of the whole project, or
because they want to use Eglot, and that package has tied LSP roots
detection to project roots (but the language server might expect some
project configuration files in the root which reside in a subdirectory).
Here's a typical question/request for this functionality:
https://emacs.stackexchange.com/questions/58463/project-el-override-project-root-with-dir-local-var/58468
Patch attached, it adds new user option project-vc-subprojects which
alters the root-finding logic and cuts out the subproject contents from
the parent project with the mechanism of "ignores".
The latter capability (excluding subproject's files) informed the choice
of the approach. Which is altering the vc project backend's behavior,
rather that offering this feature through another backend, like the one
added in the previous patch, for example.
I don't know if all users of this feature will want them excluded,
though. The attached implementation does, and maybe another option could
be added to disable this.
Or we could drop this part of the behavior, insisting that users who
want it could add the corresponding entries to project-vc-ignores. This
way they would be listing the subprojects twice, however. And the
project-vc-merge-submodules=nil behavior matches the other option
(submodule files are excluded from the parent).
Again, thoughts welcome.
[project-vc-subprojects.diff (text/x-patch, attachment)]
This bug report was last modified 2 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.