1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(next-history-element, previous-history-element): Doc fix.

This commit is contained in:
Richard M. Stallman 2006-05-04 01:00:24 +00:00
parent 379e8670bb
commit 1459a43bb1

View file

@ -1281,7 +1281,8 @@ makes the search case-sensitive."
(defvar minibuffer-temporary-goal-position nil)
(defun next-history-element (n)
"Insert the next element of the minibuffer history into the minibuffer."
"Puts next element of the minibuffer history in the minibuffer.
With argument N, it uses the Nth following element."
(interactive "p")
(or (zerop n)
(let ((narg (- minibuffer-history-position n))
@ -1324,7 +1325,8 @@ makes the search case-sensitive."
(goto-char (or minibuffer-temporary-goal-position (point-max))))))
(defun previous-history-element (n)
"Inserts the previous element of the minibuffer history into the minibuffer."
"Puts previous element of the minibuffer history in the minibuffer.
With argument N, it uses the Nth previous element."
(interactive "p")
(next-history-element (- n)))