Mercurial > emacs
changeset 34016:da2223d65c86
add-hook change
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 29 Nov 2000 19:13:46 +0000 |
parents | e998ea898e46 |
children | 8cf5499796cc |
files | lispref/modes.texi |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/modes.texi Wed Nov 29 19:13:21 2000 +0000 +++ b/lispref/modes.texi Wed Nov 29 19:13:46 2000 +0000 @@ -2242,11 +2242,8 @@ the end of the hook list and will be executed last. If @var{local} is non-@code{nil}, that says to make the new hook -function buffer-local in the current buffer. Before you can do this, you must -make the hook itself buffer-local by calling @code{make-local-hook} -(@strong{not} @code{make-local-variable}). If the hook itself is not -buffer-local, then the value of @var{local} makes no difference---the -hook function is always global. +function buffer-local in the current buffer and automatically calls +@code{make-local-hook} to make the hook itself buffer-local. @end defun @defun remove-hook hook function &optional local