emacs-devel
[Top][All Lists]
Advanced

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

Re: Feature request: permanent-local values in hooks buffer local values


From: Richard Stallman
Subject: Re: Feature request: permanent-local values in hooks buffer local values
Date: Wed, 05 Dec 2007 21:11:58 -0500

    In a way, yes. But remember the goal. It is to let a minor mode that is 
    turned on in the buffer survive changing major mode.

    There are two kind of things to survive:

    1) buffer local variable values, which are survived by using (put 
    'VARIABLE 'permanent-local t)

    2) buffer local entries in hooks. Those are what I am asking about here.

I see.  I did not understand your aim before.
Here's a possible implementation.

1. Put a property on hook variables to identify them for this
special processing.

2. Put another property (as you suggested) on hook functions
to indicate they should be preserved.

3. Now it is possible for kill-all-local-variables
to identify hook variables, scan their local values,
and preserve specific hooks.




reply via email to

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