emacs-diffs
[Top][All Lists]
Advanced

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

master 423a23e: Improve `define-globalized-minor-mode' doc strings


From: Lars Ingebrigtsen
Subject: master 423a23e: Improve `define-globalized-minor-mode' doc strings
Date: Wed, 4 Aug 2021 03:39:11 -0400 (EDT)

branch: master
commit 423a23ef7549ec425f26b537861c67e3ae78554c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Improve `define-globalized-minor-mode' doc strings
    
    * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
    Copy the description from easy-mmode--arg-docstring (bug#49843).
---
 lisp/emacs-lisp/easy-mmode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 3a00fdb..8a2b3b4 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -497,8 +497,11 @@ on if the hook has explicitly disabled it.
          ,(concat (format "Toggle %s in all buffers.\n" pretty-name)
                   (internal--format-docstring-line
                    "With prefix ARG, enable %s if ARG is positive; otherwise, \
-disable it.  If called from Lisp, enable the mode if ARG is omitted or 
nil.\n\n"
+disable it.\n\n"
                    pretty-global-name)
+                  "If called from Lisp, toggle the mode if ARG is `toggle'.
+Enable the mode if ARG is nil, omitted, or is a positive number.
+Disable the mode if ARG is a negative number.\n\n"
                   (internal--format-docstring-line
                    "%s is enabled in all buffers where `%s' would do it.\n\n"
                    pretty-name turn-on)



reply via email to

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