Subject: Re: bug#15577: 24.3; dir-local variables not applied when switching major-mode

From: Stefan Monnier <[email-masked]>
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