help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to temporarily remove a function from a hook?


From: Kevin Rodgers
Subject: how to temporarily remove a function from a hook?
Date: Wed, 08 Jul 2009 19:40:29 -0600
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]