aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/simple.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 5da9c955eb3..811302527ef 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1281,7 +1281,8 @@ makes the search case-sensitive."
1281(defvar minibuffer-temporary-goal-position nil) 1281(defvar minibuffer-temporary-goal-position nil)
1282 1282
1283(defun next-history-element (n) 1283(defun next-history-element (n)
1284 "Insert the next element of the minibuffer history into the minibuffer." 1284 "Puts next element of the minibuffer history in the minibuffer.
1285With argument N, it uses the Nth following element."
1285 (interactive "p") 1286 (interactive "p")
1286 (or (zerop n) 1287 (or (zerop n)
1287 (let ((narg (- minibuffer-history-position n)) 1288 (let ((narg (- minibuffer-history-position n))
@@ -1324,7 +1325,8 @@ makes the search case-sensitive."
1324 (goto-char (or minibuffer-temporary-goal-position (point-max)))))) 1325 (goto-char (or minibuffer-temporary-goal-position (point-max))))))
1325 1326
1326(defun previous-history-element (n) 1327(defun previous-history-element (n)
1327 "Inserts the previous element of the minibuffer history into the minibuffer." 1328 "Puts previous element of the minibuffer history in the minibuffer.
1329With argument N, it uses the Nth previous element."
1328 (interactive "p") 1330 (interactive "p")
1329 (next-history-element (- n))) 1331 (next-history-element (- n)))
1330 1332