emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 365f9ab: Clarify the doc string of 'replace-regexp-


From: Eli Zaretskii
Subject: [Emacs-diffs] master 365f9ab: Clarify the doc string of 'replace-regexp-in-string'
Date: Sat, 25 Apr 2015 09:39:35 +0000

branch: master
commit 365f9ab8653769dbe35983242746d4e46cbbf015
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Clarify the doc string of 'replace-regexp-in-string'
    
    * lisp/subr.el (replace-regexp-in-string): Doc fix.  (Bug#20395)
---
 lisp/subr.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index 062c9f9..91176e9 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]