all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Feature request: permanent-local values in hooks buffer local values
Date: Wed, 05 Dec 2007 21:11:58 -0500	[thread overview]
Message-ID: <E1J06DW-00007j-Tm@fencepost.gnu.org> (raw)
In-Reply-To: <47565186.8080909@gmail.com> (lennart.borgman@gmail.com)

    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	other threads:[~2007-12-06  2:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=E1J06DW-00007j-Tm@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.