aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-12 16:49:47 +0200
committerEli Zaretskii2015-12-12 16:49:47 +0200
commit625a5df83414b49a82da8cc47a91aa1758fd71d4 (patch)
treef9074c82ca9e1a5b3693b822d572635ce73ca91f
parent12acc25520901baa09a76e20d88ac8b251594abf (diff)
downloademacs-625a5df83414b49a82da8cc47a91aa1758fd71d4.tar.gz
emacs-625a5df83414b49a82da8cc47a91aa1758fd71d4.zip
Document the new bindings of <UP> and <DOWN> in the minibuffer
* doc/emacs/mini.texi (Minibuffer History): Describe the new bindings of <UP> and <DOWN> in the minibuffer.
-rw-r--r--doc/emacs/mini.texi30
-rw-r--r--etc/NEWS12
2 files changed, 29 insertions, 13 deletions
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi
index ed339a967a4..869e06424ad 100644
--- a/doc/emacs/mini.texi
+++ b/doc/emacs/mini.texi
@@ -588,13 +588,17 @@ argument into the minibuffer:
588 588
589@table @kbd 589@table @kbd
590@item M-p 590@item M-p
591@itemx @key{UP}
592Move to the previous item in the minibuffer history, an earlier 591Move to the previous item in the minibuffer history, an earlier
593argument (@code{previous-history-element}). 592argument (@code{previous-history-element}).
594@item M-n 593@item M-n
595@itemx @key{DOWN}
596Move to the next item in the minibuffer history 594Move to the next item in the minibuffer history
597(@code{next-history-element}). 595(@code{next-history-element}).
596@item @key{UP}
597@itemx @key{DOWN}
598Like @kbd{M-p} and @kbd{M-n}, but move to the previous or next line of
599a multi-line item before going to the previous history item
600(@code{previous-line-or-history-element} and
601@code{next-line-or-history-element}) .
598@item M-r @var{regexp} @key{RET} 602@item M-r @var{regexp} @key{RET}
599Move to an earlier item in the minibuffer history that 603Move to an earlier item in the minibuffer history that
600matches @var{regexp} (@code{previous-matching-history-element}). 604matches @var{regexp} (@code{previous-matching-history-element}).
@@ -609,13 +613,13 @@ Move to a later item in the minibuffer history that matches
609@kindex DOWN @r{(minibuffer history)} 613@kindex DOWN @r{(minibuffer history)}
610@findex next-history-element 614@findex next-history-element
611@findex previous-history-element 615@findex previous-history-element
612 While in the minibuffer, @kbd{M-p} or @key{UP} 616 While in the minibuffer, @kbd{M-p} (@code{previous-history-element})
613(@code{previous-history-element}) moves through the minibuffer history 617moves through the minibuffer history list, one item at a time. Each
614list, one item at a time. Each @kbd{M-p} fetches an earlier item from 618@kbd{M-p} fetches an earlier item from the history list into the
615the history list into the minibuffer, replacing its existing contents. 619minibuffer, replacing its existing contents. Typing @kbd{M-n}
616Typing @kbd{M-n} or @key{DOWN} (@code{next-history-element}) moves 620(@code{next-history-element}) moves through the minibuffer history
617through the minibuffer history list in the opposite direction, 621list in the opposite direction, fetching later entries into the
618fetching later entries into the minibuffer. 622minibuffer.
619 623
620 If you type @kbd{M-n} in the minibuffer when there are no later 624 If you type @kbd{M-n} in the minibuffer when there are no later
621entries in the minibuffer history (e.g., if you haven't previously 625entries in the minibuffer history (e.g., if you haven't previously
@@ -623,6 +627,14 @@ typed @kbd{M-p}), Emacs tries fetching from a list of default
623arguments: values that you are likely to enter. You can think of this 627arguments: values that you are likely to enter. You can think of this
624as moving through the ``future history''. 628as moving through the ``future history''.
625 629
630@findex previous-line-or-history-element
631@findex next-line-or-history-element
632 The arrow keys @kbd{@key{UP}} and @kbd{@key{DOWN}} work like
633@kbd{M-p} and @kbd{M-n}, but if the current history item is longer
634than a single line, they allow you to move to the previous or next
635line of the current history item before going to the previous or next
636history item.
637
626 If you edit the text inserted by the @kbd{M-p} or @kbd{M-n} 638 If you edit the text inserted by the @kbd{M-p} or @kbd{M-n}
627minibuffer history commands, this does not change its entry in the 639minibuffer history commands, this does not change its entry in the
628history list. However, the edited argument does go at the end of the 640history list. However, the edited argument does go at the end of the
diff --git a/etc/NEWS b/etc/NEWS
index 383b4917686..d65e9dd6fa6 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -492,11 +492,15 @@ match the current input.
492 492
493** Minibuffer 493** Minibuffer
494 494
495*** You can use <up> and <down> keys to move point in the multi-line 495+++
496minibuffer just as in an ordinary buffer. Only when point moves over 496*** You can use <UP> and <DOWN> arrow keys to move through history by lines.
497The new commands `next-line-or-history-element' and
498`previous-line-or-history-element', bound to <UP> and <DOWN> in the
499minibuffer, allow by-line movement through minibuffer history,
500similarly to an ordinary buffer. Only when point moves over
497the bottom/top of the minibuffer it goes to the next/previous history 501the bottom/top of the minibuffer it goes to the next/previous history
498element. The new commands bound to <up> and <down> in the minibuffer: 502element. `M-p' and `M-n' still move directly to previous/next history
499`next-line-or-history-element' and `previous-line-or-history-element'. 503item as before.
500 504
501** Search and Replace 505** Search and Replace
502 506