projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f5192
)
(replace-regexp-in-string): Doc fix.
author
Andreas Schwab
<schwab@suse.de>
Tue, 29 Oct 2002 23:42:00 +0000
(23:42 +0000)
committer
Andreas Schwab
<schwab@suse.de>
Tue, 29 Oct 2002 23:42:00 +0000
(23:42 +0000)
lisp/ChangeLog
patch
|
blob
|
history
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/ChangeLog
b/lisp/ChangeLog
index 94c7a13da28d3b0e520d148cab6a92155198bb17..cdbf78e5eaac6aa4ea8d5dbda872a14752be52cb 100644
(file)
--- a/
lisp/ChangeLog
+++ b/
lisp/ChangeLog
@@
-1,3
+1,7
@@
+2002-10-30 Andreas Schwab <schwab@suse.de>
+
+ * subr.el (replace-regexp-in-string): Doc fix.
+
2002-10-29 Dave Love <fx@gnu.org>
* cus-start.el (selection-coding-system, scalable-fonts-allowed):
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 857c61347190c538b44bba1b4c541809bdc41b29..17ca52c62926eba3e203ba4c217b82e79f828d8a 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-1790,7
+1790,7
@@
point are such that match 0 is the function's argument.
To replace only the first match (if any), make REGEXP match up to \\'
and replace a sub-expression, e.g.
- (replace-regexp-in-string \"\\
(foo\\).*
\\'\" \"bar\" \" foo foo\" nil nil 1)
+ (replace-regexp-in-string \"\\
\\(foo\\\\).*\\
\\'\" \"bar\" \" foo foo\" nil nil 1)
=> \" bar foo\"
"