(easy-mmode-define-navigation): Fix interactive spec of the functions
getting defined to make them work as documented.
This commit is contained in:
parent
3b46a8f760
commit
9e288f7521
1 changed files with 2 additions and 2 deletions
|
@ -500,7 +500,7 @@ found, do widen first and then call NARROWFUN with no args after moving."
|
|||
,(concat "^No \\(previous\\|next\\) " (regexp-quote name)))
|
||||
(defun ,next-sym (&optional count)
|
||||
,(format "Go to the next COUNT'th %s." name)
|
||||
(interactive)
|
||||
(interactive "p")
|
||||
(unless count (setq count 1))
|
||||
(if (< count 0) (,prev-sym (- count))
|
||||
(if (looking-at ,re) (setq count (1+ count)))
|
||||
|
@ -523,7 +523,7 @@ found, do widen first and then call NARROWFUN with no args after moving."
|
|||
(put ',next-sym 'definition-name ',base)
|
||||
(defun ,prev-sym (&optional count)
|
||||
,(format "Go to the previous COUNT'th %s" (or name base-name))
|
||||
(interactive)
|
||||
(interactive "p")
|
||||
(unless count (setq count 1))
|
||||
(if (< count 0) (,next-sym (- count))
|
||||
(let (was-narrowed)
|
||||
|
|
Loading…
Add table
Reference in a new issue