GNU bug report logs - #17489
24.3; Major mode spec in .dir-locals.el breaks dired

Previous Next

Package: emacs;

Reported by: Sergio Pokrovskij <sergio.pokrovskij <at> gmail.com>

Date: Wed, 14 May 2014 07:29:01 UTC

Severity: minor

Merged with 13685

Found in version 24.3

Full log


Message #23 received at 17489 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sergio Pokrovskij <sergio.pokrovskij <at> gmail.com>
Cc: 17489 <at> debbugs.gnu.org
Subject: Re: bug#17489: 24.3; Major mode spec in .dir-locals.el breaks dired
Date: Wed, 14 May 2014 21:17:36 +0300
> 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.