From: Richard M. Stallman Date: Sat, 22 Dec 2007 20:21:06 +0000 (+0000) Subject: (Query Replace): Make exp of query-replace more self-contained, and clarify. X-Git-Tag: emacs-pretest-22.1.90~236 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=abfd019136c55d6a133ac44ea40f55190ef2cfa3;p=emacs.git (Query Replace): Make exp of query-replace more self-contained, and clarify. --- diff --git a/man/ChangeLog b/man/ChangeLog index c6fab4340b8..8921b4480b3 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,10 @@ +2007-12-22 Richard Stallman + + * search.texi (Query Replace): Make exp of query-replace more + self-contained, and clarify. + + * cc-mode.texi (Getting Started): Change @ref to @pxref. + 2007-12-14 Sven Joachim * gnus.texi (Score Variables): Fix typo. diff --git a/man/search.texi b/man/search.texi index 1a8a6372ba2..48af28fa441 100644 --- a/man/search.texi +++ b/man/search.texi @@ -1152,13 +1152,12 @@ Replace some matches for @var{regexp} with @var{newstring}. @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.