From c9bcb50778fc934e3b730fb9534b3fb7f86412f6 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 29 Oct 2002 23:42:00 +0000 Subject: [PATCH] (replace-regexp-in-string): Doc fix. --- lisp/ChangeLog | 4 ++++ lisp/subr.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 94c7a13da28..cdbf78e5eaa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2002-10-30 Andreas Schwab + + * subr.el (replace-regexp-in-string): Doc fix. + 2002-10-29 Dave Love * cus-start.el (selection-coding-system, scalable-fonts-allowed): diff --git a/lisp/subr.el b/lisp/subr.el index 857c6134719..17ca52c6292 100644 --- 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\" " -- 2.39.2