GNU bug report logs - #8586
23.3.50; Directory-local variable ignored when file-local variables set mode

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Fri, 29 Apr 2011 19:39:02 UTC

Severity: normal

Merged with 5239

Found in version 23.3.50

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 8586 <at> debbugs.gnu.org
Subject: Re: bug#8586: 23.3.50;
	Directory-local variable ignored when file-local variables set mode
Date: Mon, 02 May 2011 20:45:11 -0400
Reuben Thomas wrote:

> The bug here is that the .dir-locals.el settings should be applied in
> both cases AFAICS, but they are only applied in one, and ignored in the
> other (even when the mode matches exactly!). Apparently, it is something
> to do with the mode being set at a late stage.

I imagine this is an unintended version of this:

57.3.4.1 Specifying File Variables
[...]
    If `mode' is used to set a major mode, it should be the first
    "variable" in the list.  Otherwise, the entries that precede it will
    usually have no effect, since most major modes kill all local variables
    as part of their initialization.




This bug report was last modified 14 years and 1 day ago.

Previous Next


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