GNU bug report logs - #15577
24.3; dir-local variables not applied when switching major-mode

Previous Next

Package: emacs;

Reported by: yary <not.com <at> gmail.com>

Date: Wed, 9 Oct 2013 20:15:01 UTC

Severity: normal

Merged with 23407

Found in version 24.3

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


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

From: yary <not.com <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15577 <at> debbugs.gnu.org
Subject: Re: bug#15577: 24.3;
 dir-local variables not applied when switching major-mode
Date: Thu, 10 Oct 2013 14:34:20 -0400
Before posting the mode-change-clobbering-locals behavior as a bug, I
asked about it on stackoverflow, which generated a thorough
explanation : http://stackoverflow.com/questions/19280851/how-to-keep-dir-local-variables-when-switching-major-modes
-y


On Wed, Oct 9, 2013 at 5:42 PM, Glenn Morris <rgm <at> gnu.org> wrote:
> yary wrote:
>
>> If I create a ".dir-locals.el" that applies to all major modes, such as:
>>   ((nil . ((tab-width . 3))))
>> It works when first opening any file under that directory- good. But, if
>> I switch the buffer's major-mode, it loses the directory-local
>> tab-width -
>
> File-local variables behave in the same way.




This bug report was last modified 9 years and 13 days ago.

Previous Next


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