[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11342: 24.1.50; HOOK variable name in `add-hook' etc. confusing
From: |
Michael Heerdegen |
Subject: |
bug#11342: 24.1.50; HOOK variable name in `add-hook' etc. confusing |
Date: |
Thu, 26 Apr 2012 23:31:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Andreas Schwab <schwab@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