From: Gerd Moellmann Date: Fri, 3 Aug 2001 11:57:27 +0000 (+0000) Subject: (perform-replace): Doc fix. X-Git-Tag: emacs-pretest-21.0.105~297 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=698665d1acac8549380619bd1f0b5642ce41583c;p=emacs.git (perform-replace): Doc fix. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dab47ff9bef..239db44d00a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2001-08-03 Gerd Moellmann + + * replace.el (perform-replace): Doc fix. + 2001-08-02 Francesco Potorti` * uniquify.el (uniquify-ref-base, uniquify-ref-filename) diff --git a/lisp/replace.el b/lisp/replace.el index b42839318c4..e307f56caac 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -875,9 +875,13 @@ type them." "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))))