emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 4f0e542: Improve doc strings generated by 'easy-mmo


From: Eli Zaretskii
Subject: [Emacs-diffs] master 4f0e542: Improve doc strings generated by 'easy-mmode-define-navigation'
Date: Fri, 9 Nov 2018 04:23:56 -0500 (EST)

branch: master
commit 4f0e54223a60a34818365475440e023747eab7e9
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Improve doc strings generated by 'easy-mmode-define-navigation'
    
    * lisp/emacs-lisp/easy-mmode.el
    (easy-mmode-define-navigation): Include the documentation of
    prefix argument in the generated doc string.
---
 lisp/emacs-lisp/easy-mmode.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index d74c3dd..035c65b 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -632,7 +632,8 @@ BODY is executed after moving to the destination location."
     (unless name (setq name base-name))
     `(progn
        (defun ,next-sym (&optional count)
-        ,(format "Go to the next COUNT'th %s." name)
+        ,(format "Go to the next COUNT'th %s.
+Interactively, COUNT is the prefix numeric argument, and defaults to 1." name)
         (interactive "p")
         (unless count (setq count 1))
         (if (< count 0) (,prev-sym (- count))
@@ -654,7 +655,9 @@ BODY is executed after moving to the destination location."
            ,@body))
        (put ',next-sym 'definition-name ',base)
        (defun ,prev-sym (&optional count)
-        ,(format "Go to the previous COUNT'th %s" (or name base-name))
+        ,(format "Go to the previous COUNT'th %s.
+Interactively, COUNT is the prefix numeric argument, and defaults to 1."
+                  (or name base-name))
         (interactive "p")
         (unless count (setq count 1))
         (if (< count 0) (,next-sym (- count))



reply via email to

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