aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/replace.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index a7b8ae6a347..477cc9c3055 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -405,8 +405,8 @@ replace backward.
405 405
406Fourth and fifth arg START and END specify the region to operate on. 406Fourth and fifth arg START and END specify the region to operate on.
407 407
408In TO-STRING, `\\&' or `\\0' stands for whatever matched the whole of 408In TO-STRING, `\\&' stands for whatever matched the whole of REGEXP,
409REGEXP, and `\\=\\N' (where N is a digit) stands for whatever matched 409and `\\=\\N' (where N is a digit) stands for whatever matched
410the Nth `\\(...\\)' (1-based) in REGEXP. The `\\(...\\)' groups are 410the Nth `\\(...\\)' (1-based) in REGEXP. The `\\(...\\)' groups are
411counted from 1. 411counted from 1.
412`\\?' lets you edit the replacement text in the minibuffer 412`\\?' lets you edit the replacement text in the minibuffer
@@ -652,9 +652,9 @@ replace backward.
652 652
653Fourth and fifth arg START and END specify the region to operate on. 653Fourth and fifth arg START and END specify the region to operate on.
654 654
655In TO-STRING, `\\&' or `\\0' stands for whatever matched the whole of 655In TO-STRING, `\\&' stands for whatever matched the whole of REGEXP,
656REGEXP, and `\\=\\N' (where N is a digit) stands for 656and `\\=\\N' (where N is a digit) stands for whatever matched
657whatever matched the Nth `\\(...\\)' (1-based) in REGEXP. 657the Nth `\\(...\\)' (1-based) in REGEXP.
658`\\?' lets you edit the replacement text in the minibuffer 658`\\?' lets you edit the replacement text in the minibuffer
659at the given position for each replacement. 659at the given position for each replacement.
660 660
@@ -663,7 +663,8 @@ followed by a Lisp expression used as part of the replacement
663text. Inside of that expression, `\\&' is a string denoting the 663text. Inside of that expression, `\\&' is a string denoting the
664whole match, `\\N' a partial match, `\\#&' and `\\#N' the respective 664whole match, `\\N' a partial match, `\\#&' and `\\#N' the respective
665numeric values from `string-to-number', and `\\#' itself for 665numeric values from `string-to-number', and `\\#' itself for
666`replace-count', the number of replacements occurred so far. 666`replace-count', the number of replacements occurred so far, starting
667from zero.
667 668
668If your Lisp expression is an identifier and the next letter in 669If your Lisp expression is an identifier and the next letter in
669the replacement string would be interpreted as part of it, you 670the replacement string would be interpreted as part of it, you