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: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: yary <not.com <at> gmail.com>, 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:52:33 -0400
> 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.

I do think it's at least undesirable behavior.

Not sure how best to fix it, tho.  We could try and setup file-local
vars when we run after-change-major-mode-hook.


        Stefan




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.