diff options
author | David Kastrup <dak@gnu.org> | 2007-04-17 23:24:13 +0000 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2007-04-17 23:24:13 +0000 |
commit | fc6a22502ee9c109ee0664a35822bf188500181d (patch) | |
tree | e29e56a557caaa2938fe60895c79a01478662f84 /lisp/replace.el | |
parent | f7510c4036f4bd752b564a8d51db7854b52fe4ae (diff) | |
download | emacs-fc6a22502ee9c109ee0664a35822bf188500181d.tar.gz |
* NEWS: Mention `query-replace-regexp-eval' being deprecated.
* replace.el (query-replace-regexp-eval): Deprecate.
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." (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 @@ Fourth and fifth arg START and END specify the region to operate on." (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, |