aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorHong Xu2019-10-28 16:20:43 +0100
committerLars Ingebrigtsen2019-10-28 16:20:52 +0100
commit70578e077765825980d4dbffc0e1542f01df15ef (patch)
tree47d34dfc51a46cd7950fbf42bfd7bc9e600e972c /lisp
parent9ee2caac4ddf3e790216a0353debef65e4a12c80 (diff)
downloademacs-70578e077765825980d4dbffc0e1542f01df15ef.tar.gz
emacs-70578e077765825980d4dbffc0e1542f01df15ef.zip
Add doc for goto-history-element
* doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element (bug#37948). * lisp/simple.el (goto-history-element): Clarify NABS.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/simple.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 184d4eccdb9..fca90690a5f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2128,7 +2128,9 @@ the end of the list of defaults just after the default value."
2128 2128
2129(defun goto-history-element (nabs) 2129(defun goto-history-element (nabs)
2130 "Puts element of the minibuffer history in the minibuffer. 2130 "Puts element of the minibuffer history in the minibuffer.
2131The argument NABS specifies the absolute history position." 2131The argument NABS specifies the absolute history position in
2132descending order, where 0 means the current element and a
2133positive number N means the Nth previous element."
2132 (interactive "p") 2134 (interactive "p")
2133 (when (and (not minibuffer-default-add-done) 2135 (when (and (not minibuffer-default-add-done)
2134 (functionp minibuffer-default-add-function) 2136 (functionp minibuffer-default-add-function)