emacs-devel
[Top][All Lists]
Advanced

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

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


From: Lennart Borgman (gmail)
Subject: Feature request: permanent-local values in hooks buffer local values
Date: Mon, 03 Dec 2007 18:15:41 +0100
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

For variables there is a property (permanent-local) you can set on them to make their buffer local value survive when changing major mode.

For buffer local values of hooks you can perhaps use that, but it probably does not do what you want. Some functions in a hook should survive changing major mode (for the same reasons that variables should do it), but other should not.

Could somehow a feature be added to hooks that fulfills the need I have sketched above?

Maybe the functions in the hook could have the property permanent-local? kill-local-variable should then of course have to check if a variable is a hook. (To implement something like that add-hook could set a property on a hook variable saying it is a hook.)




reply via email to

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