diff options
| author | Dave Love | 2000-11-29 19:13:46 +0000 |
|---|---|---|
| committer | Dave Love | 2000-11-29 19:13:46 +0000 |
| commit | ad5101a6528403bf5e1edd6252652864e2a6c60d (patch) | |
| tree | 2ee7e00e861a8ea78ed9413779f13fd3d67909b2 | |
| parent | 82d10c89a93deab284caab26ec9f38f8b7e470c4 (diff) | |
| download | emacs-ad5101a6528403bf5e1edd6252652864e2a6c60d.tar.gz emacs-ad5101a6528403bf5e1edd6252652864e2a6c60d.zip | |
add-hook change
| -rw-r--r-- | lispref/modes.texi | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi index 12686adac48..06a400a249a 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -2242,11 +2242,8 @@ argument @var{append} is non-@code{nil}, the new hook function goes at | |||
| 2242 | the end of the hook list and will be executed last. | 2242 | the end of the hook list and will be executed last. |
| 2243 | 2243 | ||
| 2244 | If @var{local} is non-@code{nil}, that says to make the new hook | 2244 | If @var{local} is non-@code{nil}, that says to make the new hook |
| 2245 | function buffer-local in the current buffer. Before you can do this, you must | 2245 | function buffer-local in the current buffer and automatically calls |
| 2246 | make the hook itself buffer-local by calling @code{make-local-hook} | 2246 | @code{make-local-hook} to make the hook itself buffer-local. |
| 2247 | (@strong{not} @code{make-local-variable}). If the hook itself is not | ||
| 2248 | buffer-local, then the value of @var{local} makes no difference---the | ||
| 2249 | hook function is always global. | ||
| 2250 | @end defun | 2247 | @end defun |
| 2251 | 2248 | ||
| 2252 | @defun remove-hook hook function &optional local | 2249 | @defun remove-hook hook function &optional local |