1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00

(Query Replace): Make exp of query-replace more self-contained, and clarify.

This commit is contained in:
Richard M. Stallman 2007-12-22 20:21:06 +00:00
parent ca88f0a5c8
commit abfd019136
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2007-12-22 Richard Stallman <rms@gnu.org>
* 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 <svenjoac@gmx.de>
* gnus.texi (Score Variables): Fix typo.

View File

@ -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.