diff options
| author | Eli Zaretskii | 2008-10-15 11:49:10 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-10-15 11:49:10 +0000 |
| commit | ee666f840976d56671e3cec56ab9f5152afb2dcc (patch) | |
| tree | a0fa06c9f6d619718cb38da8c0a1072418e2bc80 | |
| parent | 7cb709744177ca951a349fcbd9cc71963b637c91 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 6 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
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 @@ | |||
| 1 | 2008-10-15 Eli Zaretskii <eliz@gnu.org> | 1 | 2008-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 |
| 1363 | This function eliminates all the buffer-local variable bindings of the | 1363 | This function eliminates all the buffer-local variable bindings of the |
| 1364 | current buffer except for variables marked as ``permanent.'' As a | 1364 | current buffer except for variables marked as ``permanent'' and local |
| 1365 | result, the buffer will see the default values of most variables. | 1365 | hook functions that have a non-@code{nil} @code{permanent-local-hook} |
| 1366 | property (@pxref{Setting Hooks}). As a result, the buffer will see | ||
| 1367 | the default values of most variables. | ||
| 1366 | 1368 | ||
| 1367 | This function also resets certain other information pertaining to the | 1369 | This function also resets certain other information pertaining to the |
| 1368 | buffer: it sets the local keymap to @code{nil}, the syntax table to the | 1370 | buffer: it sets the local keymap to @code{nil}, the syntax table to the |
| @@ -1113,6 +1113,7 @@ don't, these primitives will return nil. | |||
| 1113 | ** New variable `user-emacs-directory'. | 1113 | ** New variable `user-emacs-directory'. |
| 1114 | Use this instead of "~/.emacs.d". | 1114 | Use 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' |
| 1117 | property, `kill-all-local-variables' does not remove it from the local | 1118 | property, `kill-all-local-variables' does not remove it from the local |
| 1118 | value of the hook variable; it remains even if you change major modes. | 1119 | value of the hook variable; it remains even if you change major modes. |