# HG changeset patch # User Eli Zaretskii # Date 1224071294 0 # Node ID f20cbcf45bb3342e86bfac458fe87c80f905bcf3 # Parent a4aebd526a1d43a580434f627d7fe2afbd564f24 (Creating Buffer-Local): Add an xref to "Setting Hooks" for the effect of kill-all-local-variables on local hook functions. diff -r a4aebd526a1d -r f20cbcf45bb3 doc/lispref/variables.texi --- 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