changeset 38675:a7b1d283fe97

(perform-replace): Doc fix.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 03 Aug 2001 11:57:05 +0000
parents 8e0b0d76380a
children ce568cc1138b
files lisp/replace.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Fri Aug 03 11:36:48 2001 +0000
+++ b/lisp/replace.el	Fri Aug 03 11:57:05 2001 +0000
@@ -875,9 +875,13 @@
   "Subroutine of `query-replace'.  Its complexity handles interactive queries.
 Don't use this in your own program unless you want to query and set the mark
 just as `query-replace' does.  Instead, write a simple loop like this:
-  (while (re-search-forward \"foo[ \t]+bar\" nil t)
+
+  (while (re-search-forward \"foo[ \\t]+bar\" nil t)
     (replace-match \"foobar\" nil nil))
-which will run faster and probably do exactly what you want."
+
+which will run faster and probably do exactly what you want.  Please
+see the documentation of `replace-match' to find out how to simulate
+`case-replace'."
   (or map (setq map query-replace-map))
   (and query-flag minibuffer-auto-raise
        (raise-frame (window-frame (minibuffer-window))))