[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: Easy Customization for Directory Local Variables
From: |
Mauro Aranda |
Subject: |
Re: [External] : Re: Easy Customization for Directory Local Variables |
Date: |
Mon, 25 Sep 2023 12:17:19 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 |
On 25/9/23 11:32, Drew Adams wrote:
>
>>> From a quick look, my only suggestion is to have the project
command be named something like `project-edit-dir-local-variables'.
>>
>> That would mean to add it to project.el. I'm fine with proposing that
>> provided the code gets accepted.
>
> Are dir-local vars limited to what Emacs
> calls a "project"? I didn't think so.
> Emacs's use of the term "project" is more
> limited than what a project might be in
> general, and even that is, I think, more
> limited than what dir-local vars are/imply.
>
> (Just one top-of-the-head opinion, and not
> one very knowledgeable about Emacs "projects".)
The main command, currently called customize-dirlocals, creates a buffer
to edit a .dir-locals.el file under default-directory. No limitation
about a "project", as handled by project.el, or whatsoever. At least
that's the goal.
Another command, currently called customize-dirlocals-project, creates
a buffer to edit the .dir-locals.el file that belongs to some "project",
again, as handled by project.el. I'm not much of a user of project.el
but it's supposed to be handy, since the user might be editing a file
under a subdirectory of a "project" (recognized by project.el) and
decides to edit the .dir-locals.el that belongs to that "project". So I
can see why it would be desired for such command to be in project.el,
just like commands to customize a specific set of options, or a group,
belong outside cus-edit.el