aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-15 11:49:10 +0000
committerEli Zaretskii2008-10-15 11:49:10 +0000
commitee666f840976d56671e3cec56ab9f5152afb2dcc (patch)
treea0fa06c9f6d619718cb38da8c0a1072418e2bc80
parent7cb709744177ca951a349fcbd9cc71963b637c91 (diff)
downloademacs-ee666f840976d56671e3cec56ab9f5152afb2dcc.tar.gz
emacs-ee666f840976d56671e3cec56ab9f5152afb2dcc.zip
(Creating Buffer-Local): Add an xref to "Setting Hooks" for the effect
of kill-all-local-variables on local hook functions.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/variables.texi6
-rw-r--r--etc/NEWS1
3 files changed, 9 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index d00f0cb06a8..e12c210061e 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,9 @@
12008-10-15 Eli Zaretskii <eliz@gnu.org> 12008-10-15 Eli Zaretskii <eliz@gnu.org>
2 2
3 * variables.texi (Creating Buffer-Local): Add an xref to "Setting
4 Hooks" for the effect of kill-all-local-variables on local hook
5 functions.
6
3 * modes.texi (Major Mode Conventions, Mode Line Variables): 7 * modes.texi (Major Mode Conventions, Mode Line Variables):
4 `mode-name' need not be a string. xref to "Mode Line Data" for 8 `mode-name' need not be a string. xref to "Mode Line Data" for
5 details, and to "Emulating Mode Line" for computing a string 9 details, and to "Emulating Mode Line" for computing a string
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 55422b7508d..b02bdd8a9fe 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -1361,8 +1361,10 @@ buffer-local variables interactively.
1361 1361
1362@defun kill-all-local-variables 1362@defun kill-all-local-variables
1363This function eliminates all the buffer-local variable bindings of the 1363This function eliminates all the buffer-local variable bindings of the
1364current buffer except for variables marked as ``permanent.'' As a 1364current buffer except for variables marked as ``permanent'' and local
1365result, the buffer will see the default values of most variables. 1365hook functions that have a non-@code{nil} @code{permanent-local-hook}
1366property (@pxref{Setting Hooks}). As a result, the buffer will see
1367the default values of most variables.
1366 1368
1367This function also resets certain other information pertaining to the 1369This function also resets certain other information pertaining to the
1368buffer: it sets the local keymap to @code{nil}, the syntax table to the 1370buffer: it sets the local keymap to @code{nil}, the syntax table to the
diff --git a/etc/NEWS b/etc/NEWS
index 20ea28eaf20..a11cf88f40d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1113,6 +1113,7 @@ don't, these primitives will return nil.
1113** New variable `user-emacs-directory'. 1113** New variable `user-emacs-directory'.
1114Use this instead of "~/.emacs.d". 1114Use this instead of "~/.emacs.d".
1115 1115
1116+++
1116** If a local hook function has a non-nil `permanent-local-hook' 1117** If a local hook function has a non-nil `permanent-local-hook'
1117property, `kill-all-local-variables' does not remove it from the local 1118property, `kill-all-local-variables' does not remove it from the local
1118value of the hook variable; it remains even if you change major modes. 1119value of the hook variable; it remains even if you change major modes.