From: Xue Fuqiao Date: Sun, 22 Dec 2013 05:57:32 +0000 (+0800) Subject: Document negative argument of replacement commands. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~253 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=57b837ab5f6d61bb52270b2bbc25bcf517d4e345;p=emacs.git Document negative argument of replacement commands. * doc/emacs/search.texi (Special Isearch): (Query Replace): Document negative argument of replacement commands. --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index fbc7da4b1c7..2af2d5daa70 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,6 +1,8 @@ 2013-12-22 Xue Fuqiao - * search.texi (Symbol Search): Document `isearch-forward-symbol-at-point'. + * search.texi (Special Isearch): + (Query Replace): Document negative argument of replacement commands. + (Symbol Search): Document `isearch-forward-symbol-at-point'. * files.texi (File Conveniences): Document `image-next-file' and `image-previous-file'. diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 16eed9b16dc..a7c40000233 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi @@ -272,8 +272,8 @@ current buffer afterwards. @kindex M-% @r{(Incremental search)} Typing @kbd{M-%} in incremental search invokes @code{query-replace} or @code{query-replace-regexp} (depending on search mode) with the -current search string used as the string to replace. @xref{Query -Replace}. +current search string used as the string to replace. A negative +prefix argument means to replace backward. @xref{Query Replace}. @kindex M-TAB @r{(Incremental search)} Typing @kbd{M-@key{TAB}} in incremental search invokes @@ -1243,7 +1243,8 @@ occurrence and asks you whether to replace it. Aside from querying, (@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 to consider -only occurrences that are bounded by word-delimiter characters. +only occurrences that are bounded by word-delimiter characters. A +negative prefix argument replaces backward. @kindex C-M-% @findex query-replace-regexp diff --git a/etc/NEWS b/etc/NEWS index c52e596e56e..a6eedaf1b47 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -627,6 +627,7 @@ when it's nil). *** `query-replace' skips invisible text when `search-invisible' is nil, and opens overlays with hidden text when `search-invisible' is `open'. ++++ *** A negative prefix arg of replacement commands replaces backward. `M-- M-%' replaces a string backward, `M-- C-M-%' replaces a regexp backward, `M-s w words M-- M-%' replaces a sequence of words backward.