mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Clarify manual and `add-hook' doc string about buffer-local hooks
This commit is contained in:
parent
5827450416
commit
465c5fc88d
4 changed files with 17 additions and 4 deletions
|
|
@ -1262,10 +1262,10 @@ unless the optional argument APPEND is non-nil, in which case
|
|||
FUNCTION is added at the end.
|
||||
|
||||
The optional fourth 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, and it makes t a member
|
||||
of the buffer-local value. That acts as a flag to run the hook
|
||||
functions in the default value as well as in the local value.
|
||||
the hook's buffer-local value rather than its global value.
|
||||
This makes the hook buffer-local, and it makes t a member of the
|
||||
buffer-local value. That acts as a flag to run the hook
|
||||
functions of the global value as well as in the local value.
|
||||
|
||||
HOOK should be a symbol, and FUNCTION may be any valid function. If
|
||||
HOOK is void, it is first set to nil. If HOOK's value is a single
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue