emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

remove-hook.


From: Lute Kamstra
Subject: remove-hook.
Date: Tue, 07 Oct 2003 15:25:36 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

The last sentence of remove-hook's docstring puzzles me:

,----[ C-h f remove-hook RET ]
| remove-hook is a compiled Lisp function in `subr'.
| (remove-hook HOOK FUNCTION &optional LOCAL)
| 
| Remove from the value of HOOK the function FUNCTION.
| HOOK should be a symbol, and FUNCTION may be any valid function.  If
| FUNCTION isn't the value of HOOK, or, if FUNCTION doesn't appear in the
| list of hooks to run in HOOK, then nothing is done.  See `add-hook'.
| 
| The optional third argument, LOCAL, if non-nil, says to modify
| the hook's buffer-local value rather than its default value.
| This makes the hook buffer-local if needed.
`----

When does remove-hook need to make a hook buffer-local to remove a
function from it?

  Lute.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]