From: "Mark A. Flacy" <flacy@nortelnetworks.com>
Subject: Re: ** Graded examples of lambda functions in emacs lisp, how to create hook variable? **
Date: 08 Oct 2002 11:16:32 -0500 [thread overview]
Message-ID: <yw0r3crg29en.fsf@pngcd0ja.us.nortel.com> (raw)
In-Reply-To: b00bb831.0210080628.14be9465@posting.google.com
>>>>> "gnuist006" == gnuist006 <gnuist006@hotmail.com> writes:
gnuist006>
gnuist006> Kevin Rodgers <kevinr@ihs.com> wrote in message news:<3DA1C8EC.6070801@ihs.com>...
>> gnuist wrote:
>>
>> > One last question at this stage: I know how you "add-hook" but how do you
>> > create a hook variable in the first place? Is it something particular to
>> > emacs?
>>
>>
>> (defvar some-hook nil)
>>
>>
>> (defun some-function (...)
>> ...
>> (run-hooks 'some-hook)
>> ...)
gnuist006>
gnuist006> defvar creates a hook variable.
gnuist006> run-hooks associates some-hook with the some-function.
gnuist006>
gnuist006> Now one writes lambda functions associated with the some-hook
gnuist006> without modifying the some-function????
gnuist006>
gnuist006> Is that the idea? The post was incomplete. Perhaps the author
gnuist006> know too much for us. But I want a simple concrete minimal example
gnuist006> of running code.
One would expect you to work a little harder at this.
What does "C-h f run-hooks <RETURN>" tell you?
next prev parent reply other threads:[~2002-10-08 16:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-07 15:38 ** Graded examples of lambda functions in emacs lisp, how to create hook variable? ** gnuist
2002-10-07 15:54 ` David Kastrup
2002-10-08 14:21 ` gnuist006
2002-10-08 15:13 ` David Kastrup
2002-10-07 17:48 ` Kevin Rodgers
2002-10-08 14:28 ` gnuist006
2002-10-08 16:16 ` Mark A. Flacy [this message]
2002-10-08 17:19 ` Kevin Rodgers
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=yw0r3crg29en.fsf@pngcd0ja.us.nortel.com \
--to=flacy@nortelnetworks.com \
/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.