From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: Feature request: permanent-local values in hooks buffer local values
Date: Mon, 03 Dec 2007 18:15:41 +0100 [thread overview]
Message-ID: <475439BD.7070000@gmail.com> (raw)
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.)
next reply other threads:[~2007-12-03 17:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 17:15 Lennart Borgman (gmail) [this message]
2007-12-03 18:22 ` Feature request: permanent-local values in hooks buffer local values 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=475439BD.7070000@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.