diff options
| author | Richard M. Stallman | 2005-08-20 21:48:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-08-20 21:48:51 +0000 |
| commit | 23bb94bb4a9edf0fede53274990c1e39f6dd6545 (patch) | |
| tree | 79ba141a1b8f301a7732c4f24bbacd7ebb8a2bc9 | |
| parent | 3c24b4e4a5f36bf7c57d495332a73b7d00127bc6 (diff) | |
| download | emacs-23bb94bb4a9edf0fede53274990c1e39f6dd6545.tar.gz emacs-23bb94bb4a9edf0fede53274990c1e39f6dd6545.zip | |
(replace-regexp-in-string): Doc fix.
| -rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index fba837212d3..bc97a367217 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2167,9 +2167,10 @@ arguments with the same names of function `replace-match'. If START | |||
| 2167 | is non-nil, start replacements at that index in STRING. | 2167 | is non-nil, start replacements at that index in STRING. |
| 2168 | 2168 | ||
| 2169 | REP is either a string used as the NEWTEXT arg of `replace-match' or a | 2169 | REP is either a string used as the NEWTEXT arg of `replace-match' or a |
| 2170 | function. If it is a function it is applied to each match to generate | 2170 | function. If it is a function, it is called with the actual text of each |
| 2171 | the replacement passed to `replace-match'; the match-data at this | 2171 | match, and its value is used as the replacement text. When REP is called, |
| 2172 | point are such that match 0 is the function's argument. | 2172 | the match-data are the result of matching REGEXP against a substring |
| 2173 | of STRING. | ||
| 2173 | 2174 | ||
| 2174 | To replace only the first match (if any), make REGEXP match up to \\' | 2175 | To replace only the first match (if any), make REGEXP match up to \\' |
| 2175 | and replace a sub-expression, e.g. | 2176 | and replace a sub-expression, e.g. |