]> git.eshelyaron.com Git - emacs.git/commitdiff
(replace-regexp-in-string): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Sat, 20 Aug 2005 21:48:51 +0000 (21:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 20 Aug 2005 21:48:51 +0000 (21:48 +0000)
lisp/subr.el

index fba837212d382cd22e355821bf858893b62562f1..bc97a367217ea6e0d61f92175ec74fa51d9cc4c6 100644 (file)
@@ -2167,9 +2167,10 @@ arguments with the same names of function `replace-match'.  If START
 is non-nil, start replacements at that index in STRING.
 
 REP is either a string used as the NEWTEXT arg of `replace-match' or a
-function.  If it is a function it is applied to each match to generate
-the replacement passed to `replace-match'; the match-data at this
-point are such that match 0 is the function's argument.
+function.  If it is a function, it is called with the actual text of each
+match, and its value is used as the replacement text.  When REP is called,
+the match-data are the result of matching REGEXP against a substring
+of STRING.
 
 To replace only the first match (if any), make REGEXP match up to \\'
 and replace a sub-expression, e.g.