Commit 57b837ab authored by Xue Fuqiao's avatar Xue Fuqiao
Browse files

Document negative argument of replacement commands.

* doc/emacs/search.texi (Special Isearch):
(Query Replace): Document negative argument of replacement commands.
parent 07e9eaa2
2013-12-22 Xue Fuqiao <xfq.free@gmail.com>
* 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'.
......
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment