emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 82d70d3 2/3: Clarify define-minor-mode hooks


From: Lars Ingebrigtsen
Subject: master 82d70d3 2/3: Clarify define-minor-mode hooks
Date: Fri, 9 Oct 2020 00:49:01 -0400 (EDT)

branch: master
commit 82d70d3aab7ae25beb089b3d6bb9415867db317b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Clarify define-minor-mode hooks
    
    * doc/lispref/modes.texi (Defining Minor Modes): Note that the
    code (and the hook) is run both when the mode is enabled and
    disabled (bug#43868).
---
 doc/lispref/modes.texi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index be2ee57..41c86d6 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1729,7 +1729,8 @@ The command named @var{mode} first performs the standard 
actions such as
 setting the variable named @var{mode} and then executes the @var{body}
 forms, if any.  It then runs the mode hook variable
 @code{@var{mode}-hook} and finishes by evaluating any form in
-@code{:after-hook}.
+@code{:after-hook}.  (Note that all of this, including running the
+hook, is done both when the mode is enabled and disabled.)
 @end defmac
 
   The initial value must be @code{nil} except in cases where (1) the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]