Mercurial > emacs
diff lisp/replace.el @ 77286:0f67bcedb447
* NEWS: Mention `query-replace-regexp-eval' being deprecated.
* replace.el (query-replace-regexp-eval): Deprecate.
| author | David Kastrup <dak@gnu.org> |
|---|---|
| date | Tue, 17 Apr 2007 23:24:13 +0000 |
| parents | 6a1a4e97079e |
| children | 6ad309ee5f4e e6fdae9180d4 |
line wrap: on
line diff
--- a/lisp/replace.el Tue Apr 17 20:48:43 2007 +0000 +++ b/lisp/replace.el Tue Apr 17 23:24:13 2007 +0000 @@ -303,6 +303,11 @@ (defun query-replace-regexp-eval (regexp to-expr &optional delimited start end) "Replace some things after point matching REGEXP with the result of TO-EXPR. + +Interactive use of this function is deprecated in favor of the +`\\,' feature of `query-replace-regexp'. For non-interactive use, a loop +using `search-forward-regexp' and `replace-match' is preferred. + As each match is found, the user must type a character saying what to do with it. For directions, type \\[help-command] at that time. @@ -354,6 +359,11 @@ (perform-replace regexp (cons 'replace-eval-replacement to-expr) t 'literal delimited nil nil start end)) +(make-obsolete 'query-replace-regexp-eval + "for interactive use, use the special `\\,' feature of +`query-replace-regexp' instead. Non-interactively, a loop +using `search-forward-regexp' and `replace-match' is preferred." "22.1") + (defun map-query-replace-regexp (regexp to-strings &optional n start end) "Replace some matches for REGEXP with various strings, in rotation. The second argument TO-STRINGS contains the replacement strings,
