diff options
| author | Lars Ingebrigtsen | 2019-06-16 15:09:52 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-16 15:21:18 +0200 |
| commit | bba5cc96aaad1b21190bf7ef586f784df5c9c367 (patch) | |
| tree | b98ef871c9a976e02fc7fbdc01aced1d8c83bb52 | |
| parent | e25d6cb0381c641e61bcf69e420a41186df06299 (diff) | |
| download | emacs-bba5cc96aaad1b21190bf7ef586f784df5c9c367.tar.gz emacs-bba5cc96aaad1b21190bf7ef586f784df5c9c367.zip | |
Avoid obsolete function in reftex-global.el
* lisp/textmodes/reftex-global.el (reftex-query-replace-document):
Rewrite to use fileloop directly to avoid the obsolete function
tags-query-replace.
| -rw-r--r-- | lisp/textmodes/reftex-global.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el index cdff2f479fa..6103c6c0206 100644 --- a/lisp/textmodes/reftex-global.el +++ b/lisp/textmodes/reftex-global.el | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | (eval-when-compile (require 'cl-lib)) | 27 | (eval-when-compile (require 'cl-lib)) |
| 28 | (provide 'reftex-global) | 28 | (provide 'reftex-global) |
| 29 | (require 'reftex) | 29 | (require 'reftex) |
| 30 | |||
| 31 | (declare-function fileloop-continue "fileloop") | ||
| 30 | ;;; | 32 | ;;; |
| 31 | 33 | ||
| 32 | ;;;###autoload | 34 | ;;;###autoload |
| @@ -98,8 +100,11 @@ No active TAGS table is required." | |||
| 98 | (unless to | 100 | (unless to |
| 99 | (setq to (read-string (format "Replace regexp %s with: " from)))) | 101 | (setq to (read-string (format "Replace regexp %s with: " from)))) |
| 100 | (reftex-access-scan-info current-prefix-arg) | 102 | (reftex-access-scan-info current-prefix-arg) |
| 101 | (tags-query-replace from to (or delimited current-prefix-arg) | 103 | (fileloop-initialize-replace |
| 102 | (list 'reftex-all-document-files)))) | 104 | from to (reftex-all-document-files) |
| 105 | (if (equal from (downcase from)) nil 'default) | ||
| 106 | (or delimited current-prefix-arg)) | ||
| 107 | (fileloop-continue))) | ||
| 103 | 108 | ||
| 104 | (defvar TeX-master) | 109 | (defvar TeX-master) |
| 105 | (defvar isearch-next-buffer-function) | 110 | (defvar isearch-next-buffer-function) |