summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/easy-mmode.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-08-21 17:15:22 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-21 17:15:22 +0200
commit348686b3f318195f4d341206744b8e98470c90f4 (patch)
tree7cfaceea20ed154f33f19940ce0ee353ab40bd1e /lisp/emacs-lisp/easy-mmode.el
parentac1270de400c643c422ca9475ed9497cef818ad4 (diff)
downloademacs-348686b3f318195f4d341206744b8e98470c90f4.tar.gz
emacs-348686b3f318195f4d341206744b8e98470c90f4.tar.bz2
emacs-348686b3f318195f4d341206744b8e98470c90f4.zip
Minor mode doc string clarification
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Clarify that the minor mode hook is called both when enabling and disabling the mode (bug#34073).
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
-rw-r--r--lisp/emacs-lisp/easy-mmode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 59e2e2e08ff..24c9e79f2c1 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -87,7 +87,10 @@ replacing its case-insensitive matches with the literal string in LIGHTER."
If called interactively, enable %s if ARG is positive, and
disable it if ARG is zero or negative. If called from Lisp,
also enable the mode if ARG is omitted or nil, and toggle it
-if ARG is `toggle'; disable the mode otherwise.")
+if ARG is `toggle'; disable the mode otherwise.
+
+The mode's hook is called both when the mode is enabled and when
+it is disabled.")
(defun easy-mmode--mode-docstring (doc mode-pretty-name keymap-sym)
(let ((doc (or doc (format "Toggle %s on or off.