aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-03-25 17:14:17 -0400
committerChong Yidong2010-03-25 17:14:17 -0400
commitf2608df3a3700ebefa1293ba0f91ec9d8cf4a9aa (patch)
treeba70ede6e0584d0721b50d3d90fb9e83a4fb123a
parent71785b7a63bf1cec45856e1ea15d2397b65e4f13 (diff)
downloademacs-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/ChangeLog1
-rw-r--r--doc/emacs/misc.texi27
-rw-r--r--etc/NEWS14
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
102010-03-24 Glenn Morris <rgm@gnu.org> 112010-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.
966Fetch the next later old shell command. 966Fetch 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 971Begin an incremental regexp search of old shell commands.
972@item M-r @var{regexp} @key{RET}
973@itemx M-s @var{regexp} @key{RET}
974Search 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
1008expression and search through the history for a matching command. Aside 1005expression search of previous shell commands. After typing @kbd{M-r},
1009from the choice of which command to fetch, they work just like @kbd{M-p} 1006start typing the desired string or regular expression; the last
1010and @kbd{M-n}. If you enter an empty regexp, these commands reuse the 1007matching shell command will be displayed in the current line.
1011same regexp used last time. 1008Incremental 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
1014typing @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
1015wish. Any partial input you were composing before navigating the 1012line. Any partial input you were composing before navigating the
1016history list is restored when you go to the beginning or end of the 1013history list is restored when you go to the beginning or end of the
1017history ring. 1014history ring.
1018 1015
diff --git a/etc/NEWS b/etc/NEWS
index 332cc49e331..f82a3ae825e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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'.
282This starts an incremental search of the comint/shell input history.
283+++
284*** ansi-color is now enabled by default in Shell mode.
280To disable it, set ansi-color-for-comint-mode to nil. 285To 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.
356the command asynchronously without the need to manually add ampersand to 361the command asynchronously without the need to manually add ampersand to
357the end of the command. Its output appears in the buffer `*Async Shell 362the end of the command. Its output appears in the buffer `*Async Shell
358Command*'. 363Command*'.
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'
362and `comint-history-isearch-backward-regexp' (bound to M-r) start Isearch
363in 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'
366read buffer names to search, one by one, ended with RET. With a prefix 366read buffer names to search, one by one, ended with RET. With a prefix