emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 70578e0: Add doc for goto-history-element


From: Lars Ingebrigtsen
Subject: master 70578e0: Add doc for goto-history-element
Date: Mon, 28 Oct 2019 11:21:00 -0400 (EDT)

branch: master
commit 70578e077765825980d4dbffc0e1542f01df15ef
Author: Hong Xu <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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.
---
 doc/lispref/minibuf.texi | 6 ++++++
 lisp/simple.el           | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index dd51181..d5a1601 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -2334,6 +2334,12 @@ This command replaces the minibuffer contents with the 
value of the
 contents of the minibuffer before the point.
 @end deffn
 
+@deffn Command goto-history-element nabs
+Puts element of the minibuffer history in the minibuffer.  The
+argument @var{nabs} specifies the absolute history position in
+descending order, where 0 means the current element and a positive
+number N means the Nth previous element.
+@end deffn
 
 @node Minibuffer Windows
 @section Minibuffer Windows
diff --git a/lisp/simple.el b/lisp/simple.el
index 184d4ec..fca9069 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."
 
 (defun goto-history-element (nabs)
   "Puts element of the minibuffer history in the minibuffer.
-The argument NABS specifies the absolute history position."
+The argument NABS specifies the absolute history position in
+descending order, where 0 means the current element and a
+positive number N means the Nth previous element."
   (interactive "p")
   (when (and (not minibuffer-default-add-done)
             (functionp minibuffer-default-add-function)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]