changeset 12234:2de6f5e4858d

Explain how make-local-hook works.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Jun 1995 13:28:17 +0000
parents 9a87c5ce0802
children 6d2e893b7ff7
files lispref/modes.texi
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/modes.texi	Thu Jun 15 07:04:00 1995 +0000
+++ b/lispref/modes.texi	Thu Jun 15 13:28:17 1995 +0000
@@ -1383,6 +1383,13 @@
 buffer.  When a hook variable is local, it can have local and global
 hook functions, and @code{run-hooks} runs all of them.
 
+This function works by making @code{t} an element of the buffer-local
+value.  That serves as a flag to use the hook functions in the default
+value of the hook variable as well as those in the local value.  Since
+@code{run-hooks} understands this flag, @code{make-local-hook} works
+with all normal hooks.  It works for only some non-normal hooks---those
+whose callers have been updated to understand this meaning of @code{t}.
+
 Do not use @code{make-local-variable} directly for hook variables; it is
 not sufficient.
 @end defun