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


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: yary <not.com <at> gmail.com>
Cc: 15577 <at> debbugs.gnu.org
Subject: bug#15577: 24.3; dir-local variables not applied when switching major-mode
Date: Thu, 10 Oct 2013 17:27:26 -0400
yary wrote:

> 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

I think it slightly impolite to post the same question to two different
places at the same time.

Anyway, are you happy with the answers you have, or do you want Emacs to
change? It is a long-standing behaviour that local variables (file or
directory) are only applied (by normal-mode) when you visit a file, and
get clobbered by major-mode changes.




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.