From: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: remove-hook.
Date: 07 Oct 2003 11:24:49 -0400 [thread overview]
Message-ID: <jwv1xtp3wjy.fsf-monnier+emacs/devel@vor.iro.umontreal.ca> (raw)
In-Reply-To: <sgdu16lw075.fsf@occarina.pna.cwi.nl>
> And you still have the mechanism where t in the buffer-local value of
> a hook is substituted by the functions in the global value?
Sure. Think of it as:
(defun run-hook (h)
(let ((inhibit nil)
(funs (symbol-value h)))
(while funs
(let ((fun (pop funs)))
(cond
((eq 'not (car-safe fun)) (push fun inhibit))
((member fun inhibit) nil)
((eq t fun) (setq funs (append (default-value h) funs)))
(t (funcall fun)))))))
-- Stefan
next prev parent reply other threads:[~2003-10-07 15:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 13:25 remove-hook Lute Kamstra
2003-10-07 13:40 ` remove-hook Luc Teirlinck
2003-10-07 13:42 ` remove-hook Stefan Monnier
2003-10-07 14:00 ` remove-hook Lute Kamstra
2003-10-07 14:59 ` remove-hook Stefan Monnier
2003-10-07 15:13 ` remove-hook Lute Kamstra
2003-10-07 15:24 ` Stefan Monnier [this message]
2003-10-07 22:04 ` remove-hook Luc Teirlinck
2003-10-08 4:52 ` remove-hook Richard Stallman
2003-10-10 14:25 ` remove-hook Lute Kamstra
2003-10-11 17:12 ` remove-hook Richard Stallman
2003-10-08 4:52 ` remove-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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1xtp3wjy.fsf-monnier+emacs/devel@vor.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
--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.