all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Feature request: permanent-local values in hooks buffer local values
@ 2007-12-03 17:15 Lennart Borgman (gmail)
  2007-12-03 18:22 ` Juanma Barranquero
  2007-12-04  4:56 ` Richard Stallman
  0 siblings, 2 replies; 12+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-03 17:15 UTC (permalink / raw)
  To: Emacs Devel

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.)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-12-09 23:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 17:15 Feature request: permanent-local values in hooks buffer local values Lennart Borgman (gmail)
2007-12-03 18:22 ` Juanma Barranquero
2007-12-04  4:56 ` Richard Stallman
2007-12-04 18:13   ` Lennart Borgman (gmail)
2007-12-05  6:05     ` Richard Stallman
2007-12-05  7:21       ` Lennart Borgman (gmail)
2007-12-06  2:11         ` Richard Stallman
2007-12-07  0:25           ` Lennart Borgman (gmail)
2007-12-09 12:36             ` Richard Stallman
2007-12-09 14:21               ` Lennart Borgman (gmail)
2007-12-09 15:24                 ` Lennart Borgman (gmail)
2007-12-09 23:19                 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.