Commit 4e444027 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix last change

* lisp/simple.el (goto-history-element)
(next-history-element): Fix quoting of "future history".

* doc/lispref/minibuf.texi (Minibuffer Commands)
(Text from Minibuffer): Add index entry and cross-reference
for "future history".  (Bug#38026)
parent 15f4c415
Pipeline #3978 failed with stage
in 67 minutes and 42 seconds
......@@ -141,6 +141,7 @@ However, if @var{read} is non-@code{nil}, @code{read-from-minibuffer}
reads the text and returns the resulting Lisp object, unevaluated.
(@xref{Input Functions}, for information about reading.)
@cindex future history in minibuffer input
The argument @var{default} specifies default values to make available
through the history commands. It should be a string, a list of
strings, or @code{nil}. The string or strings become the minibuffer's
......@@ -2308,7 +2309,8 @@ This command replaces the minibuffer contents with the value of the
@deffn Command next-history-element n
This command replaces the minibuffer contents with the value of the
@var{n}th more recent history element. The position in the history
can go beyond the current position and invoke ``future history.''
can go beyond the current position and invoke ``future history''
(@pxref{Text from Minibuffer}).
@end deffn
@deffn Command previous-matching-history-element pattern n
......
......@@ -2131,7 +2131,7 @@ the end of the list of defaults just after the default value."
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. NABS being a
negative number -N means the Nth entry of ``future history.''"
negative number -N means the Nth entry of \"future history.\""
(interactive "p")
(when (and (not minibuffer-default-add-done)
(functionp minibuffer-default-add-function)
......@@ -2189,8 +2189,8 @@ negative number -N means the Nth entry of ``future history.''"
(defun next-history-element (n)
"Puts next element of the minibuffer history in the minibuffer.
With argument N, it uses the Nth following element. The position
in the history can go beyond the current position and invoke
``future history.''"
in the history can go beyond the current position and invoke \"future
history.\""
(interactive "p")
(or (zerop n)
(goto-history-element (- minibuffer-history-position n))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment