* modes.texi (Running Hooks): Mention buffer-local hook variables
Fixes: debbugs:6218
This commit is contained in:
parent
465c5fc88d
commit
63d55f1f91
2 changed files with 13 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
|||
2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* modes.texi (Running Hooks): Mention buffer-local hook variables
|
||||
(bug#6218).
|
||||
|
||||
* objects.texi (General Escape Syntax): "a with grave accent" is
|
||||
?xe0, not ?x8e0 (bug#5259).
|
||||
|
||||
|
|
|
@ -101,6 +101,11 @@ one, with no arguments.
|
|||
The hook variable's value can also be a single function---either a
|
||||
lambda expression or a symbol with a function definition---which
|
||||
@code{run-hooks} calls. But this usage is obsolete.
|
||||
|
||||
If the hook variable is buffer-local, the buffer-local variable will
|
||||
be used instead of the global variable. However, if the buffer-local
|
||||
variable contains the element @code{t}, the global hook variable will
|
||||
be run as well.
|
||||
@end defun
|
||||
|
||||
@defun run-hook-with-args hook &rest args
|
||||
|
@ -169,11 +174,11 @@ function goes at the end of the hook list and will be executed last.
|
|||
value is a single function; it sets or changes the value to a list of
|
||||
functions.
|
||||
|
||||
If @var{local} is non-@code{nil}, that says to add @var{function} to
|
||||
the buffer-local hook list instead of to the global hook list. If
|
||||
needed, this makes the hook buffer-local and adds @code{t} to the
|
||||
buffer-local value. The latter acts as a flag to run the hook
|
||||
functions in the default value as well as in the local value.
|
||||
If @var{local} is non-@code{nil}, that says to add @var{function} to the
|
||||
buffer-local hook list instead of to the global hook list. This makes
|
||||
the hook buffer-local and adds @code{t} to the buffer-local value. The
|
||||
latter acts as a flag to run the hook functions in the default value as
|
||||
well as in the local value.
|
||||
@end defun
|
||||
|
||||
@defun remove-hook hook function &optional local
|
||||
|
|
Loading…
Add table
Reference in a new issue