diff options
| author | Chong Yidong | 2010-03-25 17:14:17 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-03-25 17:14:17 -0400 |
| commit | f2608df3a3700ebefa1293ba0f91ec9d8cf4a9aa (patch) | |
| tree | ba70ede6e0584d0721b50d3d90fb9e83a4fb123a | |
| parent | 71785b7a63bf1cec45856e1ea15d2397b65e4f13 (diff) | |
| download | emacs-f2608df3a3700ebefa1293ba0f91ec9d8cf4a9aa.tar.gz emacs-f2608df3a3700ebefa1293ba0f91ec9d8cf4a9aa.zip | |
Document comint history-search changes.
* misc.texi (Shell Ring): Document new M-r binding. M-s is no longer bound.
| -rw-r--r-- | doc/emacs/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 27 | ||||
| -rw-r--r-- | etc/NEWS | 14 |
3 files changed, 20 insertions, 22 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 4ed2ac129e7..741b226267d 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | * emacs.texi: Update node description. | 6 | * emacs.texi: Update node description. |
| 7 | 7 | ||
| 8 | * misc.texi (Navigation): Document doc-view-continuous. | 8 | * misc.texi (Navigation): Document doc-view-continuous. |
| 9 | (Shell Ring): Document new M-r binding. M-s is no longer bound. | ||
| 9 | 10 | ||
| 10 | 2010-03-24 Glenn Morris <rgm@gnu.org> | 11 | 2010-03-24 Glenn Morris <rgm@gnu.org> |
| 11 | 12 | ||
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 29d529c2a86..808c3bfc3d3 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -966,12 +966,9 @@ Fetch the next earlier old shell command. | |||
| 966 | Fetch the next later old shell command. | 966 | Fetch the next later old shell command. |
| 967 | 967 | ||
| 968 | @kindex M-r @r{(Shell mode)} | 968 | @kindex M-r @r{(Shell mode)} |
| 969 | @kindex M-s @r{(Shell mode)} | 969 | @findex comint-history-isearch-backward-regexp |
| 970 | @findex comint-previous-matching-input | 970 | @item M-r |
| 971 | @findex comint-next-matching-input | 971 | Begin an incremental regexp search of old shell commands. |
| 972 | @item M-r @var{regexp} @key{RET} | ||
| 973 | @itemx M-s @var{regexp} @key{RET} | ||
| 974 | Search backwards or forwards for old shell commands that match @var{regexp}. | ||
| 975 | 972 | ||
| 976 | @item C-c C-x | 973 | @item C-c C-x |
| 977 | @kindex C-c C-x @r{(Shell mode)} | 974 | @kindex C-c C-x @r{(Shell mode)} |
| @@ -1004,15 +1001,15 @@ successively more recent shell commands from the buffer. | |||
| 1004 | @kbd{C-@key{UP}} works like @kbd{M-p}, and @kbd{C-@key{DOWN}} like | 1001 | @kbd{C-@key{UP}} works like @kbd{M-p}, and @kbd{C-@key{DOWN}} like |
| 1005 | @kbd{M-n}. | 1002 | @kbd{M-n}. |
| 1006 | 1003 | ||
| 1007 | The history search commands @kbd{M-r} and @kbd{M-s} read a regular | 1004 | The history search command @kbd{M-r} begins an incremental regular |
| 1008 | expression and search through the history for a matching command. Aside | 1005 | expression search of previous shell commands. After typing @kbd{M-r}, |
| 1009 | from the choice of which command to fetch, they work just like @kbd{M-p} | 1006 | start typing the desired string or regular expression; the last |
| 1010 | and @kbd{M-n}. If you enter an empty regexp, these commands reuse the | 1007 | matching shell command will be displayed in the current line. |
| 1011 | same regexp used last time. | 1008 | Incremental search commands have their usual effects---for instance, |
| 1012 | 1009 | @kbd{C-s} and @kbd{C-r} search forward and backward for the next match | |
| 1013 | When you find the previous input you want, you can resubmit it by | 1010 | (@pxref{Incremental Search}). When you find the desired input, type |
| 1014 | typing @key{RET}, or you can edit it first and then resubmit it if you | 1011 | @key{RET} to terminate the search. This puts the input in the command |
| 1015 | wish. Any partial input you were composing before navigating the | 1012 | line. Any partial input you were composing before navigating the |
| 1016 | history list is restored when you go to the beginning or end of the | 1013 | history list is restored when you go to the beginning or end of the |
| 1017 | history ring. | 1014 | history ring. |
| 1018 | 1015 | ||
| @@ -274,9 +274,14 @@ experience delays when sending mail, you may wish to set this to nil. | |||
| 274 | +++ | 274 | +++ |
| 275 | ** nXML mode is now the default for editing XML files. | 275 | ** nXML mode is now the default for editing XML files. |
| 276 | 276 | ||
| 277 | ** Shell | 277 | ** Shell (and other comint modes) |
| 278 | +++ | 278 | +++ |
| 279 | *** ansi-color is now enabled by default. | 279 | *** M-s is no longer bound to `comint-next-matching-input'. |
| 280 | +++ | ||
| 281 | *** M-r is now bound to `comint-history-isearch-backward-regexp'. | ||
| 282 | This starts an incremental search of the comint/shell input history. | ||
| 283 | +++ | ||
| 284 | *** ansi-color is now enabled by default in Shell mode. | ||
| 280 | To disable it, set ansi-color-for-comint-mode to nil. | 285 | To disable it, set ansi-color-for-comint-mode to nil. |
| 281 | 286 | ||
| 282 | +++ | 287 | +++ |
| @@ -356,11 +361,6 @@ to sacrifice some accuracy for a faster startup. | |||
| 356 | the command asynchronously without the need to manually add ampersand to | 361 | the command asynchronously without the need to manually add ampersand to |
| 357 | the end of the command. Its output appears in the buffer `*Async Shell | 362 | the end of the command. Its output appears in the buffer `*Async Shell |
| 358 | Command*'. | 363 | Command*'. |
| 359 | |||
| 360 | *** Isearch searches in the comint/shell input history when the new variable | ||
| 361 | `comint-history-isearch' is non-nil. New commands `comint-history-isearch-backward' | ||
| 362 | and `comint-history-isearch-backward-regexp' (bound to M-r) start Isearch | ||
| 363 | in the input history regardless of the value of `comint-history-isearch'. | ||
| 364 | +++ | 364 | +++ |
| 365 | *** Interactively `multi-isearch-buffers' and `multi-isearch-buffers-regexp' | 365 | *** Interactively `multi-isearch-buffers' and `multi-isearch-buffers-regexp' |
| 366 | read buffer names to search, one by one, ended with RET. With a prefix | 366 | read buffer names to search, one by one, ended with RET. With a prefix |