changeset 60048:ab86eb33656d

(Creating Buffer-Local): change-major-mode-hook is useful for discarding some minor modes.
author Richard M. Stallman <rms@gnu.org>
date Mon, 14 Feb 2005 10:25:20 +0000
parents 16e24b1eba47
children 17bee7f39dee
files lispref/variables.texi
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/variables.texi	Mon Feb 14 10:24:22 2005 +0000
+++ b/lispref/variables.texi	Mon Feb 14 10:25:20 2005 +0000
@@ -1429,8 +1429,11 @@
 The function @code{kill-all-local-variables} runs this normal hook
 before it does anything else.  This gives major modes a way to arrange
 for something special to be done if the user switches to a different
-major mode.  For best results, make this variable buffer-local, so that
-it will disappear after doing its job and will not interfere with the
+major mode.  It is also useful for buffer-specific minor modes
+that should be forgotten if the user changes the major mode.
+
+For best results, make this variable buffer-local, so that it will
+disappear after doing its job and will not interfere with the
 subsequent major mode.  @xref{Hooks}.
 @end defvar