Mercurial > emacs
diff lisp/replace.el @ 17211:ecf78b4eb138
(replace-string): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 22 Mar 1997 03:51:36 +0000 |
parents | b0a097ba0ec5 |
children | 9ece72836276 |
line wrap: on
line diff
--- 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))