emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specifying mode in file variables trouble


From: Lennart Borgman (gmail)
Subject: Re: Specifying mode in file variables trouble
Date: Tue, 23 Sep 2008 22:48:01 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Stefan Monnier wrote:
>> So the order of running the hooks is
> 
>>    childs local mode hook
>>      which also include running childs global hook (at the `t')
>>    parents' mode hooks
> 
> No.  Without the delay-mode-hooks thingy, the way it works is:
> 
>    <parent-mode code>;
>    <parent-mode hook, which also includes global ones>;
>    <child-mode code>;
>    <child-mode hook, which also includes global ones>;
> 
> while the delay-mode-hooks trick changes it to:
> 
>    <parent-mode code>;
>    <child-mode code>;
>    <parent-mode hook, which also includes global ones>;
>    <child-mode hook, which also includes global ones>;

Ehm. Yes, thanks.

>> If this is correct then I think that adding the call to
>> mumamo-restore-most-buffer-locals first in the childs local mode hook
>> would be the best.
> 
> It sounds like you want it first in the parent's mode hook.


Yes, I think I fall for wishfull thinking there.

That is some more lines to implement ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]