GNU bug report logs -
#15577
24.3; dir-local variables not applied when switching major-mode
Previous Next
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
On Mon, Oct 21, 2013 at 9:11 AM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> I've been experimenting with this today (along the lines of
>> http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-10/msg00534.html )
>> and one of the things I noticed which I'd not previously considered
>> was the major mode switches which happen every time you enter the
>> minibuffer.
>
> I don't see why that would be a problem: only the *Minibuf-N* buffer
> changes major mode (and not even that, really, because mini-buffers
> don't follow the rules w.r.t major modes).
I also noticed that going into the minibuffer would trigger
mode-change hooks, and much hilarity ensued when I had a call to the
debugger dropped in there... I don't have more to add other than I am
following these posts with interest, and thanks for running it. Seems
like you will be able to handle both file and dir-locals, and that
splitting out file locals to bug #15658 was premature- I prefer the
way you're going, since it keeps the permanence within the buffer; my
proposal would have set the "permanent-local" property and alas
properties are always global.
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.