From: gnuist006@hotmail.com (gnuist006)
Subject: Re: ** Graded examples of lambda functions in emacs lisp, how to create hook variable? **
Date: 8 Oct 2002 07:28:28 -0700 [thread overview]
Message-ID: <b00bb831.0210080628.14be9465@posting.google.com> (raw)
In-Reply-To: 3DA1C8EC.6070801@ihs.com
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)
> ...)
defvar creates a hook variable.
run-hooks associates some-hook with the some-function.
Now one writes lambda functions associated with the some-hook
without modifying the some-function????
Is that the idea? The post was incomplete. Perhaps the author
know too much for us. But I want a simple concrete minimal example
of running code.
next prev parent reply other threads:[~2002-10-08 14:28 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 [this message]
2002-10-08 16:16 ` Mark A. Flacy
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=b00bb831.0210080628.14be9465@posting.google.com \
--to=gnuist006@hotmail.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.