changeset 98734:f20cbcf45bb3

(Creating Buffer-Local): Add an xref to "Setting Hooks" for the effect of kill-all-local-variables on local hook functions.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 15 Oct 2008 11:48:14 +0000
parents a4aebd526a1d
children c95be74509b3
files doc/lispref/variables.texi
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/variables.texi	Wed Oct 15 11:38:09 2008 +0000
+++ b/doc/lispref/variables.texi	Wed Oct 15 11:48:14 2008 +0000
@@ -1361,8 +1361,10 @@
 
 @defun kill-all-local-variables
 This function eliminates all the buffer-local variable bindings of the
-current buffer except for variables marked as ``permanent.''  As a
-result, the buffer will see the default values of most variables.
+current buffer except for variables marked as ``permanent'' and local
+hook functions that have a non-@code{nil} @code{permanent-local-hook}
+property (@pxref{Setting Hooks}).  As a result, the buffer will see
+the default values of most variables.
 
 This function also resets certain other information pertaining to the
 buffer: it sets the local keymap to @code{nil}, the syntax table to the