From: Sebastian Tennant <sdt@sebyte.me>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 46813@debbugs.gnu.org
Subject: bug#46813: 27.0.91; Form `(subdirs . nil)' in .dir-locals.el does not protect subdirectories
Date: Sat, 27 Feb 2021 17:05:23 +0000 [thread overview]
Message-ID: <87pn0le90s.fsf@sebyte.me> (raw)
In-Reply-To: <87a6rpiov9.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 27 Feb 2021 15:09:30 +0100")
Quoth Lars Ingebrigtsen <larsi@gnus.org>
on Sat, 27 Feb 2021 15:09:30 +0100:
> Sebastian Tennant <sdt@sebyte.me> writes:
>
>> According to the sexp written to file tmp/.dir-locals.el in 4, variable
>> `foo' should only be bound to `bar' in files under tmp/. However, when
>> file tmp/sub/baz is visited in 6, the local variables list includes the
>> binding 'foo : bar', deemed to be risky.
>>
>> The relevant section of (info "(emacs) Directory Variables") reads:
>>
>> "The special ‘subdirs’ element is not a variable, but a special keyword
>> which indicates that the [...] settings are only to be applied in the
>> current directory, not in any subdirectories."
>>
>> Bug, documentation bug or thinko?
>
> There's been quite a few fixed in the .dir-locals.el code in the
> development branch over the past few months. Would it be possible for
> you to check "master" and see whether the problem still exists there?
It's fixed on master.
Any tips on how to backport the fix to emacs-27?
next prev parent reply other threads:[~2021-02-27 17:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-27 13:59 bug#46813: 27.0.91; Form `(subdirs . nil)' in .dir-locals.el does not protect subdirectories Sebastian Tennant
2021-02-27 14:09 ` Lars Ingebrigtsen
2021-02-27 17:05 ` Sebastian Tennant [this message]
2021-02-28 13:42 ` Lars Ingebrigtsen
2021-02-28 18:19 ` Eli Zaretskii
2021-03-01 12:37 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn0le90s.fsf@sebyte.me \
--to=sdt@sebyte.me \
--cc=46813@debbugs.gnu.org \
--cc=larsi@gnus.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).