Commit 4f0e5422 authored by Eli Zaretskii's avatar Eli Zaretskii

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.
parent f3345dee
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment