]> code.delx.au - gnu-emacs/commitdiff
Clarify the doc string of 'replace-regexp-in-string'
authorEli Zaretskii <eliz@gnu.org>
Sat, 25 Apr 2015 09:38:07 +0000 (12:38 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 25 Apr 2015 09:38:07 +0000 (12:38 +0300)
* lisp/subr.el (replace-regexp-in-string): Doc fix.  (Bug#20395)

lisp/subr.el

index 062c9f95d440418ade84b232b06bc946b848ebcb..91176e9e805dc5821326d04c4796c8a048175c8c 100644 (file)
@@ -3731,7 +3731,8 @@ REP is either a string used as the NEWTEXT arg of `replace-match' or a
 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.
+of STRING, the same substring that is the actual text of the match which
+is passed to REP as its argument.
 
 To replace only the first match (if any), make REGEXP match up to \\'
 and replace a sub-expression, e.g.