# HG changeset patch # User Juri Linkov # Date 1229563136 0 # Node ID a7456f383bd92e67ccdea2ce6aa4fe0bcbe86be8 # Parent aeee07e2edfe25ff3678fb3739b0a39ee585406b (Word Search): Replace `C-s RET C-w' with `M-s w RET' as a key binding to start a forward nonincremental word search. Replace `C-r RET C-w' with `M-s w C-r RET' as a key binding to start a backward nonincremental word search. Add index for `M-s w' `isearch-forward-word'. (Regexp Search): Add a short summary of regexp key commands like in the node "Basic Isearch". (Other Repeating Search): Fix typo. diff -r aeee07e2edfe -r a7456f383bd9 doc/emacs/search.texi --- a/doc/emacs/search.texi Thu Dec 18 01:18:06 2008 +0000 +++ b/doc/emacs/search.texi Thu Dec 18 01:18:56 2008 +0000 @@ -67,7 +67,7 @@ @subsection Basics of Incremental Search @table @kbd -@item C-s +@item C-s Begin incremental search (@code{isearch-forward}). @item C-r Begin reverse incremental search (@code{isearch-backward}). @@ -434,12 +434,14 @@ If incremental search is active, toggle word search mode (@code{isearch-toggle-word}); otherwise, begin an incremental forward word search (@code{isearch-forward-word}). -@item C-s @key{RET} C-w -Begin a non-incremental forward word search. -@item C-r @key{RET} C-w -Begin a non-incremental backward word search. +@item M-s w @key{RET} @var{words} @key{RET} +Search for @var{words}, using a forward nonincremental word search. +@item M-s w C-r @key{RET} @var{words} @key{RET} +Search backward for @var{words}, using a nonincremental word search. @end table +@kindex M-s w +@findex isearch-forward-word To begin a forward incremental word search, type @kbd{M-s w}. If incremental search is not already active, this runs the command @code{isearch-forward-word}. If incremental search is already active @@ -450,8 +452,8 @@ @findex word-search-forward @findex word-search-backward - To begin a nonincremental word search, type @kbd{C-s @key{RET} C-w} -for a forward search or @kbd{C-r @key{RET} C-w} for a forward search. + To begin a nonincremental word search, type @kbd{M-s w @key{RET}} +for a forward search, or @kbd{M-s w C-r @key{RET}} for a backward search. These run the commands @code{word-search-forward} and @code{word-search-backward} respectively. @@ -472,6 +474,13 @@ match for a regexp. The syntax of regular expressions is explained in the following section. +@table @kbd +@item C-M-s +Begin incremental regexp search (@code{isearch-forward-regexp}). +@item C-M-r +Begin reverse incremental regexp search (@code{isearch-backward-regexp}). +@end table + @kindex C-M-s @findex isearch-forward-regexp @kindex C-M-r @@ -1311,7 +1320,7 @@ @kindex M-s o @item M-s o Run @code{occur} using the search string of the last incremental -string search. You can also run @kbd{M-s o} which an incremental +string search. You can also run @kbd{M-s o} when an incremental search is active; this uses the current search string. @item M-x list-matching-lines