diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-11-09 11:22:46 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-11-09 11:22:46 +0200 |
commit | 4f0e54223a60a34818365475440e023747eab7e9 (patch) | |
tree | ae43d72877d5bdee4b34edb6347fe129242df42f /lisp/emacs-lisp | |
parent | f3345dee4b40293547d10963c6cb242a62e424ba (diff) | |
download | emacs-4f0e54223a60a34818365475440e023747eab7e9.tar.gz emacs-4f0e54223a60a34818365475440e023747eab7e9.tar.bz2 emacs-4f0e54223a60a34818365475440e023747eab7e9.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index d74c3ddb97b..035c65b1c0a 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)) |