diff options
| -rw-r--r-- | lisp/replace.el | 13 |
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 | ||
| 406 | Fourth and fifth arg START and END specify the region to operate on. | 406 | Fourth and fifth arg START and END specify the region to operate on. |
| 407 | 407 | ||
| 408 | In TO-STRING, `\\&' or `\\0' stands for whatever matched the whole of | 408 | In TO-STRING, `\\&' stands for whatever matched the whole of REGEXP, |
| 409 | REGEXP, and `\\=\\N' (where N is a digit) stands for whatever matched | 409 | and `\\=\\N' (where N is a digit) stands for whatever matched |
| 410 | the Nth `\\(...\\)' (1-based) in REGEXP. The `\\(...\\)' groups are | 410 | the Nth `\\(...\\)' (1-based) in REGEXP. The `\\(...\\)' groups are |
| 411 | counted from 1. | 411 | counted 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 | ||
| 653 | Fourth and fifth arg START and END specify the region to operate on. | 653 | Fourth and fifth arg START and END specify the region to operate on. |
| 654 | 654 | ||
| 655 | In TO-STRING, `\\&' or `\\0' stands for whatever matched the whole of | 655 | In TO-STRING, `\\&' stands for whatever matched the whole of REGEXP, |
| 656 | REGEXP, and `\\=\\N' (where N is a digit) stands for | 656 | and `\\=\\N' (where N is a digit) stands for whatever matched |
| 657 | whatever matched the Nth `\\(...\\)' (1-based) in REGEXP. | 657 | the 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 |
| 659 | at the given position for each replacement. | 659 | at the given position for each replacement. |
| 660 | 660 | ||
| @@ -663,7 +663,8 @@ followed by a Lisp expression used as part of the replacement | |||
| 663 | text. Inside of that expression, `\\&' is a string denoting the | 663 | text. Inside of that expression, `\\&' is a string denoting the |
| 664 | whole match, `\\N' a partial match, `\\#&' and `\\#N' the respective | 664 | whole match, `\\N' a partial match, `\\#&' and `\\#N' the respective |
| 665 | numeric values from `string-to-number', and `\\#' itself for | 665 | numeric 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 |
| 667 | from zero. | ||
| 667 | 668 | ||
| 668 | If your Lisp expression is an identifier and the next letter in | 669 | If your Lisp expression is an identifier and the next letter in |
| 669 | the replacement string would be interpreted as part of it, you | 670 | the replacement string would be interpreted as part of it, you |