[Top][All Lists]

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

Re: Subprojects in project.el

From: Dmitry Gutov
Subject: Re: Subprojects in project.el
Date: Fri, 25 Nov 2022 22:27:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 25/11/22 09:42, Juri Linkov wrote:
The idea of customizing the projects with a list of relative subproject
directory file names solves those downsides, but comes with lack of
automation: you have to do it for every relevant project, and not forget to
update the settings as the project structure changes. Which might also be
a pain e.g. when switching branches, if your dir-locals.el is not checked
There is no need to change dir-locals.el.  The project root can be
defined using 'dir-locals-set-class-variables'.  Then it can be
assigned to any directory using 'dir-locals-set-directory-class'.

How would we fetch the exact root at runtime, if the value is applied to the whole directory subtree?

reply via email to

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