summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-03-22 03:51:36 +0000
committerRichard M. Stallman <rms@gnu.org>1997-03-22 03:51:36 +0000
commite47495c413e8feba1118d97d53b46d9699331fa4 (patch)
tree3998d26d2dcf646a3b27a19d9374009111fae4ad
parent3b8a1684830c5327a49a3b1a5d2f2bd5f38c3624 (diff)
downloademacs-e47495c413e8feba1118d97d53b46d9699331fa4.tar.gz
(replace-string): Doc fix.
-rw-r--r--lisp/replace.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 0cb0f0486c5..24411f4739f 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -148,7 +148,9 @@ This function is usually the wrong thing to use in a Lisp program.
What you probably want is a loop like this:
(while (search-forward FROM-STRING nil t)
(replace-match TO-STRING nil t))
-which will run faster and will not set the mark or print anything."
+which will run faster and will not set the mark or print anything.
+\(You may need a more complex loop if FROM-STRING can match the null string
+and TO-STRING is also null.)"
(interactive (query-replace-read-args "Replace string" nil))
(perform-replace from-string to-string nil nil delimited))