[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: Sat, 26 Nov 2022 00:23:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 25/11/22 04:38, Stefan Monnier 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 in.

Perhaps we'll ultimately end up with both ways to do this inside project.el,
but that feels redundant.
How 'bout something more "organic":
allow the user to interactively indicate "this is the root of the
current project" and save that info in some customization file?

IOW instead of having the users edit the customization info by hand,
allow them to edit it indirectly when they notice that Emacs doesn't
give the result they expected?

I don't personally like the idea of a centralized customized list of project roots, though I remember some project implementations back in the day took that approach. Not the most popular ones, though, IIRC.

Setting stuff up via dir-locals is more of my cup of tea, to be honest (when manual configuration is unavoidable). But we might add your way as well, perhaps later.

reply via email to

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