GNU bug report logs -
#17489
24.3; Major mode spec in .dir-locals.el breaks dired
Previous Next
Full log
View this message in rfc822 format
> From: Sergio Pokrovskij <sergio.pokrovskij <at> gmail.com>
> Cc: 17489 <at> debbugs.gnu.org
> Date: Thu, 15 May 2014 00:24:47 +0700
>
> Eli> IOW, why isn't that .dir-locals.el setting of yours not a
> Eli> cockpit error?
>
> Because there is no appropriate means to impose a reasonable
> condition. Just the "nil" or a major mode name. It may happen
> that I do not know the a-priori mode; actually it is mode that I
> would like to set.
Why would someone want to apply a fixed major mode to all the files in
a directory?
> ,----
> | Whenever Emacs visits any file IN THAT DIRECTORY or any of its
> | subdirectories, it will apply the directory-local variables
> | specified in `.dir-locals.el', AS THOUGH THEY HAD BEEN DEFINED AS
> | FILE-LOCAL VARIABLES for that file ...
> `----
Are you saying that "." is not a file?
This bug report was last modified 3 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.