diff options
| author | Eli Zaretskii | 2015-12-12 16:49:47 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-12 16:49:47 +0200 |
| commit | 625a5df83414b49a82da8cc47a91aa1758fd71d4 (patch) | |
| tree | f9074c82ca9e1a5b3693b822d572635ce73ca91f | |
| parent | 12acc25520901baa09a76e20d88ac8b251594abf (diff) | |
| download | emacs-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.texi | 30 | ||||
| -rw-r--r-- | etc/NEWS | 12 |
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} | ||
| 592 | Move to the previous item in the minibuffer history, an earlier | 591 | Move to the previous item in the minibuffer history, an earlier |
| 593 | argument (@code{previous-history-element}). | 592 | argument (@code{previous-history-element}). |
| 594 | @item M-n | 593 | @item M-n |
| 595 | @itemx @key{DOWN} | ||
| 596 | Move to the next item in the minibuffer history | 594 | Move 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} | ||
| 598 | Like @kbd{M-p} and @kbd{M-n}, but move to the previous or next line of | ||
| 599 | a 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} |
| 599 | Move to an earlier item in the minibuffer history that | 603 | Move to an earlier item in the minibuffer history that |
| 600 | matches @var{regexp} (@code{previous-matching-history-element}). | 604 | matches @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 | 617 | moves through the minibuffer history list, one item at a time. Each |
| 614 | list, 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 |
| 615 | the history list into the minibuffer, replacing its existing contents. | 619 | minibuffer, replacing its existing contents. Typing @kbd{M-n} |
| 616 | Typing @kbd{M-n} or @key{DOWN} (@code{next-history-element}) moves | 620 | (@code{next-history-element}) moves through the minibuffer history |
| 617 | through the minibuffer history list in the opposite direction, | 621 | list in the opposite direction, fetching later entries into the |
| 618 | fetching later entries into the minibuffer. | 622 | minibuffer. |
| 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 |
| 621 | entries in the minibuffer history (e.g., if you haven't previously | 625 | entries 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 | |||
| 623 | arguments: values that you are likely to enter. You can think of this | 627 | arguments: values that you are likely to enter. You can think of this |
| 624 | as moving through the ``future history''. | 628 | as 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 | ||
| 634 | than a single line, they allow you to move to the previous or next | ||
| 635 | line of the current history item before going to the previous or next | ||
| 636 | history 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} |
| 627 | minibuffer history commands, this does not change its entry in the | 639 | minibuffer history commands, this does not change its entry in the |
| 628 | history list. However, the edited argument does go at the end of the | 640 | history list. However, the edited argument does go at the end of the |
| @@ -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 | +++ |
| 496 | minibuffer 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. |
| 497 | The new commands `next-line-or-history-element' and | ||
| 498 | `previous-line-or-history-element', bound to <UP> and <DOWN> in the | ||
| 499 | minibuffer, allow by-line movement through minibuffer history, | ||
| 500 | similarly to an ordinary buffer. Only when point moves over | ||
| 497 | the bottom/top of the minibuffer it goes to the next/previous history | 501 | the bottom/top of the minibuffer it goes to the next/previous history |
| 498 | element. The new commands bound to <up> and <down> in the minibuffer: | 502 | element. `M-p' and `M-n' still move directly to previous/next history |
| 499 | `next-line-or-history-element' and `previous-line-or-history-element'. | 503 | item as before. |
| 500 | 504 | ||
| 501 | ** Search and Replace | 505 | ** Search and Replace |
| 502 | 506 | ||