all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: William Case <billlinux@rogers.com>
To: djcb@djcbsoftware.nl
Cc: Emacs Help List <help-gnu-emacs@gnu.org>
Subject: Re: What do 'hooks' do  and how do they do it?
Date: Sat, 01 Aug 2009 20:43:28 +0000	[thread overview]
Message-ID: <1249159408.2246.35.camel@CASE> (raw)
In-Reply-To: <86iqh7ct32.wl%djcb@djcbsoftware.nl>

Thanks Dirk;

On Sat, 2009-08-01 at 21:00 +0300, Dirk-Jan C.Binnema wrote:
> Hi Bill,

> I think Drew Adams gave a very clear answer about the Emacs implementation,

Yes he did.  However, I tried to point out in my original post that I
was aware of how to implement a 'hook' in emacs.

> but let me add that the concept of a 'hook' is simply a programming technique:
> the ability to set some function to be run whenever a particular event
> happens.

I was curious about the programming technique that was used -- or more
specifically -- how the hook function was setup so that the hook
automagically responded to a program's hook event.


> The concept is in use in many places (such as SE-Linux), but how it's
> implemented is quite different. In Emacs-Lisp, the hooks are simply Lisp
> functions to be called -- no kernel involved (well...).
> 
> See: http://en.wikipedia.org/wiki/Hooking

The wikipedia site you suggest above covers just about everything I
wanted to know.  I don't know how I missed it.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1





  reply	other threads:[~2009-08-01 20:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-01 17:17 What do 'hooks' do and how do they do it? William Case
2009-08-01 17:39 ` Drew Adams
2009-08-01 18:00 ` Dirk-Jan C. Binnema
2009-08-01 20:43   ` William Case [this message]
2009-08-01 22:05     ` Drew Adams
2009-08-01 22:44       ` William Case
2009-08-07 15:17 ` Thien-Thi Nguyen

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=1249159408.2246.35.camel@CASE \
    --to=billlinux@rogers.com \
    --cc=djcb@djcbsoftware.nl \
    --cc=help-gnu-emacs@gnu.org \
    /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.