diff options
| author | Karoly Lorentey | 2007-04-22 12:45:07 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2007-04-22 12:45:07 +0000 |
| commit | 6ca7e0d8570f684ce14f60a6c8fb9545a0c2c935 (patch) | |
| tree | 45771ca4535584e12b5f4886c65f865b61527213 /lisp/replace.el | |
| parent | 9d0799072a0d09bc14a99eaf372b262d1ba61399 (diff) | |
| parent | fcb006c4ee97e3413a794c543367b771f0237495 (diff) | |
| download | emacs-6ca7e0d8570f684ce14f60a6c8fb9545a0c2c935.tar.gz emacs-6ca7e0d8570f684ce14f60a6c8fb9545a0c2c935.zip | |
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-702
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-703
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-704
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-705
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-706
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-707
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-216
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-602
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index a8dfd043c72..ed1fa9a6b59 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -303,6 +303,11 @@ Use \\[repeat-complex-command] after this command for details." | |||
| 303 | 303 | ||
| 304 | (defun query-replace-regexp-eval (regexp to-expr &optional delimited start end) | 304 | (defun query-replace-regexp-eval (regexp to-expr &optional delimited start end) |
| 305 | "Replace some things after point matching REGEXP with the result of TO-EXPR. | 305 | "Replace some things after point matching REGEXP with the result of TO-EXPR. |
| 306 | |||
| 307 | Interactive use of this function is deprecated in favor of the | ||
| 308 | `\\,' feature of `query-replace-regexp'. For non-interactive use, a loop | ||
| 309 | using `search-forward-regexp' and `replace-match' is preferred. | ||
| 310 | |||
| 306 | As each match is found, the user must type a character saying | 311 | As each match is found, the user must type a character saying |
| 307 | what to do with it. For directions, type \\[help-command] at that time. | 312 | what to do with it. For directions, type \\[help-command] at that time. |
| 308 | 313 | ||
| @@ -354,6 +359,11 @@ Fourth and fifth arg START and END specify the region to operate on." | |||
| 354 | (perform-replace regexp (cons 'replace-eval-replacement to-expr) | 359 | (perform-replace regexp (cons 'replace-eval-replacement to-expr) |
| 355 | t 'literal delimited nil nil start end)) | 360 | t 'literal delimited nil nil start end)) |
| 356 | 361 | ||
| 362 | (make-obsolete 'query-replace-regexp-eval | ||
| 363 | "for interactive use, use the special `\\,' feature of | ||
| 364 | `query-replace-regexp' instead. Non-interactively, a loop | ||
| 365 | using `search-forward-regexp' and `replace-match' is preferred." "22.1") | ||
| 366 | |||
| 357 | (defun map-query-replace-regexp (regexp to-strings &optional n start end) | 367 | (defun map-query-replace-regexp (regexp to-strings &optional n start end) |
| 358 | "Replace some matches for REGEXP with various strings, in rotation. | 368 | "Replace some matches for REGEXP with various strings, in rotation. |
| 359 | The second argument TO-STRINGS contains the replacement strings, | 369 | The second argument TO-STRINGS contains the replacement strings, |