GNU bug report logs - #11342
24.1.50; HOOK variable name in `add-hook' etc. confusing

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Wed, 25 Apr 2012 22:45:01 UTC

Severity: minor

Found in version 24.1.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 11342 <at> debbugs.gnu.org
Subject: bug#11342: 24.1.50; HOOK variable name in `add-hook' etc. confusing
Date: Thu, 26 Apr 2012 23:31:48 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> > The manual sometimes calls these values being symbols "hook", and
> > sometimes "hook variable".
>
> * (elisp) Hooks::
>
>     A "hook" is a variable where you can store a function or functions to
>     be called on a particular occasion by an existing program.

File: elisp,  Node: Setting Hooks

 -- Function: add-hook hook function &optional append local
     This function is the handy way to add function FUNCTION to hook
     variable HOOK.

 -- Function: remove-hook hook function &optional local
     This function removes FUNCTION from the hook variable HOOK.


Michael




This bug report was last modified 13 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.