Mercurial > emacs
changeset 79604:37a6ca546c99
(Query Replace): Make exp of query-replace more self-contained, and clarify.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 22 Dec 2007 20:21:00 +0000 |
parents | a8106baeaf31 |
children | 5bc69f84989e |
files | man/search.texi |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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.