# HG changeset patch # User Richard M. Stallman # Date 859002696 0 # Node ID ecf78b4eb1384241456dc6664bcb87c9dbb6f1e1 # Parent 5c7c572f57f821fb55eaec05aa44c3bacdcb6841 (replace-string): Doc fix. diff -r 5c7c572f57f8 -r ecf78b4eb138 lisp/replace.el --- a/lisp/replace.el Sat Mar 22 03:49:14 1997 +0000 +++ b/lisp/replace.el Sat Mar 22 03:51:36 1997 +0000 @@ -148,7 +148,9 @@ 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))