Mercurial > emacs
changeset 17211:ecf78b4eb138
(replace-string): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 22 Mar 1997 03:51:36 +0000 |
parents | 5c7c572f57f8 |
children | de55dc47bae6 |
files | lisp/replace.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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))