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
IMO, it's not practical to use directory local variable
1. directory local variable goes ".dir-local.el". But we can't mark
every directory contain this file as project. We have to do extra search
if we use directory local variable.
2. If we have variable "project-directory-plain-project-p", It's a
problem for us to determine the root of project because we will get the
same directory local value for all sub-directories of project root.
In your use case. I think we can add variable "project-known-projects",
you can add your favorite directory to it, you can also persist this
variable using savehist.el
On 2020/5/28 下午3:42, Philip K. wrote:
> Zhu Zihao <cjpeople2013 <at> gmail.com> writes:
>
>> To mark a directoy as project, put an empty magic file .emacs-project under the
>> directory, and project.el should be responsible for it.
> Is there any more standard name than ".emacs-project"? Or could a
> directory local-variable be used? I like the idea, but wouldn't want to
> have so many ".emacs-project" files lying around in toy projects.
>
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.