GNU bug report logs - #46813
27.0.91; Form `(subdirs . nil)' in .dir-locals.el does not protect subdirectories

Previous Next

Package: emacs;

Reported by: Sebastian Tennant <sdt <at> sebyte.me>

Date: Sat, 27 Feb 2021 14:00:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.91

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Sebastian Tennant <sdt <at> sebyte.me>
Cc: 46813 <at> 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 15:09:30 +0100
Sebastian Tennant <sdt <at> 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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.