all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to temporarily remove a function from a hook?
@ 2009-07-09  1:40 Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2009-07-09  1:40 UTC (permalink / raw)
  To: help-gnu-emacs

What is the right way to temporarily remove a function from a hook?


My best guess is:

(let ((foo-hook (progn (remove-hook 'bar 'foo-hook) foo-hook)))
   ...)

-- 
Kevin Rodgers
Denver, Colorado, USA





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

end of thread, other threads:[~2009-07-09 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2124.1247103655.2239.help-gnu-emacs@gnu.org>
2009-07-09  2:42 ` how to temporarily remove a function from a hook? Pascal J. Bourguignon
2009-07-09  4:04   ` Barry Margolin
2009-07-09 11:14     ` Johan Bockgård
2009-07-09  1:40 Kevin Rodgers

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.