# HG changeset patch # User Richard M. Stallman # Date 1198354860 0 # Node ID 37a6ca546c993f0a199520e2d5efa3286313a807 # Parent a8106baeaf31251be601998427f582f248cfe02e (Query Replace): Make exp of query-replace more self-contained, and clarify. diff -r a8106baeaf31 -r 37a6ca546c99 man/search.texi --- a/man/search.texi Sat Dec 22 17:34:14 2007 +0000 +++ b/man/search.texi Sat Dec 22 20:21:00 2007 +0000 @@ -1152,13 +1152,12 @@ @kindex M-% @findex query-replace If you want to change only some of the occurrences of @samp{foo} to -@samp{bar}, not all of them, then you cannot use an ordinary -@code{replace-string}. Instead, use @kbd{M-%} (@code{query-replace}). +@samp{bar}, not all of them, use @kbd{M-%} (@code{query-replace}). This command finds occurrences of @samp{foo} one by one, displays each occurrence and asks you whether to replace it. Aside from querying, -@code{query-replace} works just like @code{replace-string}. It -preserves case, like @code{replace-string}, provided -@code{case-replace} is non-@code{nil}, as it normally is +@code{query-replace} works just like @code{replace-string} +(@pxref{Unconditional Replace}). In particular, it preserves case +provided @code{case-replace} is non-@code{nil}, as it normally is (@pxref{Replacement and Case}). A numeric argument means consider only occurrences that are bounded by word-delimiter characters.