diff options
| author | Richard M. Stallman | 1997-03-22 03:51:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-22 03:51:36 +0000 |
| commit | 87532fbe3c6cc59c7fccf7af6d1d5a2f654598e5 (patch) | |
| tree | 655a394e255d54e50133f52880a55c01d3a8ec86 /lisp/replace.el | |
| parent | 8e3beae0e6d522b086e82c2e7208091e32801ee5 (diff) | |
| download | emacs-87532fbe3c6cc59c7fccf7af6d1d5a2f654598e5.tar.gz emacs-87532fbe3c6cc59c7fccf7af6d1d5a2f654598e5.zip | |
(replace-string): Doc fix.
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 4 |
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. | |||
| 148 | What you probably want is a loop like this: | 148 | What you probably want is a loop like this: |
| 149 | (while (search-forward FROM-STRING nil t) | 149 | (while (search-forward FROM-STRING nil t) |
| 150 | (replace-match TO-STRING nil t)) | 150 | (replace-match TO-STRING nil t)) |
| 151 | which will run faster and will not set the mark or print anything." | 151 | which will run faster and will not set the mark or print anything. |
| 152 | \(You may need a more complex loop if FROM-STRING can match the null string | ||
| 153 | and TO-STRING is also null.)" | ||
| 152 | (interactive (query-replace-read-args "Replace string" nil)) | 154 | (interactive (query-replace-read-args "Replace string" nil)) |
| 153 | (perform-replace from-string to-string nil nil delimited)) | 155 | (perform-replace from-string to-string nil nil delimited)) |
| 154 | 156 | ||