unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Letting hooks?
@ 2012-06-06  5:07 Eric Abrahamsen
  2012-06-06  6:36 ` Tassilo Horn
       [not found] ` <mailman.2336.1338964587.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Abrahamsen @ 2012-06-06  5:07 UTC (permalink / raw)
  To: help-gnu-emacs

I'm trying to temporarily add a function to a hook within the space of
one function. I've tried a bunch of stuff and nothing's worked properly,
and I suspect I'm just doing the Wrong Thing. Everything I've tried has
been along the lines of:

--8<---------------cut here---------------start------------->8---
(defun my-function ()
  (let ((grommet-created-hook
	 (push my-hook-function
	       grommet-created-hook)))
    (create-grommet)))
--8<---------------cut here---------------end--------------->8---

I've tried it with append and copy-sequence, everything blows up in
different ways.

Is this simply the wrong approach, or have I just not tried the right
commands? All advice appreciated!

Eric


-- 
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-06-06 on pellet




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

end of thread, other threads:[~2012-06-08  3:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06  5:07 Letting hooks? Eric Abrahamsen
2012-06-06  6:36 ` Tassilo Horn
     [not found] ` <mailman.2336.1338964587.855.help-gnu-emacs@gnu.org>
2012-06-08  0:57   ` Stefan Monnier
2012-06-08  3:28     ` Eric Abrahamsen

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).