all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: File-local and directory-local variable thoughts
Date: Fri, 14 Oct 2022 09:43:12 -0400	[thread overview]
Message-ID: <jwvczauplpt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 255248B3-80CD-49CB-BB50-C3610B735C26@easesoftware.com

> 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	other threads:[~2022-10-14 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 22:31 File-local and directory-local variable thoughts Perry Smith
2022-10-14 13:43 ` Stefan Monnier via Users list for the GNU Emacs text editor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvczauplpt.fsf-monnier+emacs@gnu.org \
    --to=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.