help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: File-local and directory-local variable thoughts


From: Stefan Monnier
Subject: Re: File-local and directory-local variable thoughts
Date: Fri, 14 Oct 2022 09:43:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> In the past, I wanted to set rspec-spec-command in a .dir-locals.el file but
> when I did, I got the question if I wanted to apply the list every time
> I loaded a file or reloaded a file or reloaded a directory.
>
> I download a lot of gunk from the internet.  Mostly source code to help me
> understand things.  So… I really don’t want to globally say “yes, it is safe
> to set this variable”.

Nitpick: this is not quite what Emacs is asking.  The question is only
whether "it is safe to set this variable *to this value*".

> What I’d prefer to say is “Yes, I want to set this
> variable to this value within this directory (or file).

Is the restriction to a specific value precise enough to assuage your
concerns?


        Stefan




reply via email to

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