aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-08-03 11:57:27 +0000
committerGerd Moellmann2001-08-03 11:57:27 +0000
commit698665d1acac8549380619bd1f0b5642ce41583c (patch)
tree6fb8c6dbecd498b895f200fa190542c22aabd536
parentf4e05d97a864e835f1852a3d4276696b0211a71a (diff)
downloademacs-698665d1acac8549380619bd1f0b5642ce41583c.tar.gz
emacs-698665d1acac8549380619bd1f0b5642ce41583c.zip
(perform-replace): Doc fix.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/replace.el8
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dab47ff9bef..239db44d00a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12001-08-03 Gerd Moellmann <gerd@gnu.org>
2
3 * replace.el (perform-replace): Doc fix.
4
12001-08-02 Francesco Potorti` <pot@gnu.org> 52001-08-02 Francesco Potorti` <pot@gnu.org>
2 6
3 * uniquify.el (uniquify-ref-base, uniquify-ref-filename) 7 * 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."
875 "Subroutine of `query-replace'. Its complexity handles interactive queries. 875 "Subroutine of `query-replace'. Its complexity handles interactive queries.
876Don't use this in your own program unless you want to query and set the mark 876Don't use this in your own program unless you want to query and set the mark
877just as `query-replace' does. Instead, write a simple loop like this: 877just as `query-replace' does. Instead, write a simple loop like this:
878 (while (re-search-forward \"foo[ \t]+bar\" nil t) 878
879 (while (re-search-forward \"foo[ \\t]+bar\" nil t)
879 (replace-match \"foobar\" nil nil)) 880 (replace-match \"foobar\" nil nil))
880which will run faster and probably do exactly what you want." 881
882which will run faster and probably do exactly what you want. Please
883see the documentation of `replace-match' to find out how to simulate
884`case-replace'."
881 (or map (setq map query-replace-map)) 885 (or map (setq map query-replace-map))
882 (and query-flag minibuffer-auto-raise 886 (and query-flag minibuffer-auto-raise
883 (raise-frame (window-frame (minibuffer-window)))) 887 (raise-frame (window-frame (minibuffer-window))))