From: Richard Stallman <rms@gnu.org>
Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org
Subject: Re: add-hook
Date: Wed, 12 Nov 2003 15:02:15 -0500 [thread overview]
Message-ID: <E1AK1Bv-0005CS-T4@fencepost.gnu.org> (raw)
In-Reply-To: <buofzgvej3a.fsf@mcspd15.ucom.lsi.nec.co.jp> (message from Miles Bader on 11 Nov 2003 11:26:33 +0900)
;; Setting `local' to t ensures that the var will be modified with `set'
;; whereas a setting of nil implies that the hook will be modified with
;; `set-default', so the safe setting is t. The only case where we
;; want to use the unsafe setting of nil is when we indeed want to change
;; the global part of the hook and there is both a local and a global part
;; (i.e when local == nil and when there's a t in the hook's content).
That comment may be correct, but it is still hard to understand.
Also, the variable ought to be renamed. t does not mean the hook
is local or that anything is local.
next prev parent reply other threads:[~2003-11-12 20:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-10 3:01 add-hook Richard Stallman
2003-11-10 5:07 ` add-hook Miles Bader
2003-11-10 15:41 ` add-hook Stefan Monnier
2003-11-11 2:26 ` add-hook Miles Bader
2003-11-12 20:02 ` Richard Stallman [this message]
2003-11-11 18:22 ` add-hook 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1AK1Bv-0005CS-T4@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).