From bf614499ff2a69f0796f30e5a29afd35465cfd3e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 14 Feb 2005 10:25:20 +0000 Subject: [PATCH] (Creating Buffer-Local): change-major-mode-hook is useful for discarding some minor modes. --- lispref/variables.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lispref/variables.texi b/lispref/variables.texi index 1f793b8f03f..de5fb40618f 100644 --- a/lispref/variables.texi +++ b/lispref/variables.texi @@ -1429,8 +1429,11 @@ variables that major modes set should not be marked permanent. 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 -- 2.39.5