[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15577: 24.3; dir-local variables not applied when switching major-mo
From: |
yary |
Subject: |
bug#15577: 24.3; dir-local variables not applied when switching major-mode |
Date: |
Thu, 10 Oct 2013 19:12:22 -0400 |
@Glenn "slightly impolite to post the same question to two different
places" -Understood, but this is a bug report, different purpose from
Stackoverflow question- and thus "are you happy with the answers you
have, or do you want Emacs to change?"- both! The answers are a
workaround for the current situation, but are slightly imperfect, and
as Stefan just wrote the current scheme is "at least undesirable
behavior."
The problem with the "(add-hook 'after-change-major-mode-hook
'hack-local-variables)" workaround and its variants, is when a
major-mode is set by a file-local variable- changing major mode will
reload the local variables, which will revert the major-mode again!
And the trouble with current Emacs out-of-the-box behavior is not
gaining the relevant file-local and dir-local variables for a new
major-mode when changing to that major-mode. I'd like to see a
well-thought-out solution in some future release.
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/09
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Glenn Morris, 2013/10/09
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/10
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Glenn Morris, 2013/10/10
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Stefan Monnier, 2013/10/10
- bug#15577: 24.3; dir-local variables not applied when switching major-mode,
yary <=
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/14
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/16
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/18
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Stefan Monnier, 2013/10/18
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/19
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Stefan Monnier, 2013/10/19
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/20
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Phil Sainty, 2013/10/20
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, Stefan Monnier, 2013/10/21
- bug#15577: 24.3; dir-local variables not applied when switching major-mode, yary, 2013/10/21