[Top][All Lists]
[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.
- Feature request: permanent-local values in hooks buffer local values, Lennart Borgman (gmail), 2007/12/03
- Re: Feature request: permanent-local values in hooks buffer local values, Juanma Barranquero, 2007/12/03
- Re: Feature request: permanent-local values in hooks buffer local values, Richard Stallman, 2007/12/03
- Re: Feature request: permanent-local values in hooks buffer local values, Lennart Borgman (gmail), 2007/12/04
- Re: Feature request: permanent-local values in hooks buffer local values, Richard Stallman, 2007/12/05
- Re: Feature request: permanent-local values in hooks buffer local values, Lennart Borgman (gmail), 2007/12/05
- Re: Feature request: permanent-local values in hooks buffer local values,
Richard Stallman <=
- Re: Feature request: permanent-local values in hooks buffer local values, Lennart Borgman (gmail), 2007/12/06
- Re: Feature request: permanent-local values in hooks buffer local values, Richard Stallman, 2007/12/09
- Re: Feature request: permanent-local values in hooks buffer local values, Lennart Borgman (gmail), 2007/12/09
- Re: Feature request: permanent-local values in hooks buffer local values, Lennart Borgman (gmail), 2007/12/09
- Re: Feature request: permanent-local values in hooks buffer local values, Richard Stallman, 2007/12/09