diff options
| author | Eli Zaretskii | 2019-11-09 11:43:19 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-11-09 11:43:19 +0200 |
| commit | 4e4440272ece6d698d88af680d5c17ab322c7b64 (patch) | |
| tree | a41af9fa63603ff856fa6638c2573aaeb927f65c /lisp | |
| parent | 15f4c4156c1a0afdedbe6f13732431383f44f36f (diff) | |
| download | emacs-4e4440272ece6d698d88af680d5c17ab322c7b64.tar.gz emacs-4e4440272ece6d698d88af680d5c17ab322c7b64.zip | |
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)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index b7a601b2e2d..6677291ebab 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2131,7 +2131,7 @@ the end of the list of defaults just after the default value." | |||
| 2131 | The argument NABS specifies the absolute history position in | 2131 | The argument NABS specifies the absolute history position in |
| 2132 | descending order, where 0 means the current element and a | 2132 | descending order, where 0 means the current element and a |
| 2133 | positive number N means the Nth previous element. NABS being a | 2133 | positive number N means the Nth previous element. NABS being a |
| 2134 | negative number -N means the Nth entry of ``future history.''" | 2134 | negative number -N means the Nth entry of \"future history.\"" |
| 2135 | (interactive "p") | 2135 | (interactive "p") |
| 2136 | (when (and (not minibuffer-default-add-done) | 2136 | (when (and (not minibuffer-default-add-done) |
| 2137 | (functionp minibuffer-default-add-function) | 2137 | (functionp minibuffer-default-add-function) |
| @@ -2189,8 +2189,8 @@ negative number -N means the Nth entry of ``future history.''" | |||
| 2189 | (defun next-history-element (n) | 2189 | (defun next-history-element (n) |
| 2190 | "Puts next element of the minibuffer history in the minibuffer. | 2190 | "Puts next element of the minibuffer history in the minibuffer. |
| 2191 | With argument N, it uses the Nth following element. The position | 2191 | With argument N, it uses the Nth following element. The position |
| 2192 | in the history can go beyond the current position and invoke | 2192 | in the history can go beyond the current position and invoke \"future |
| 2193 | ``future history.''" | 2193 | history.\"" |
| 2194 | (interactive "p") | 2194 | (interactive "p") |
| 2195 | (or (zerop n) | 2195 | (or (zerop n) |
| 2196 | (goto-history-element (- minibuffer-history-position n)))) | 2196 | (goto-history-element (- minibuffer-history-position n)))) |