summaryrefslogtreecommitdiff
path: root/lisp/textmodes/reftex-global.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-16 15:09:52 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-16 15:21:18 +0200
commitbba5cc96aaad1b21190bf7ef586f784df5c9c367 (patch)
treeb98ef871c9a976e02fc7fbdc01aced1d8c83bb52 /lisp/textmodes/reftex-global.el
parente25d6cb0381c641e61bcf69e420a41186df06299 (diff)
downloademacs-bba5cc96aaad1b21190bf7ef586f784df5c9c367.tar.gz
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.
Diffstat (limited to 'lisp/textmodes/reftex-global.el')
-rw-r--r--lisp/textmodes/reftex-global.el9
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 @@
(eval-when-compile (require 'cl-lib))
(provide 'reftex-global)
(require 'reftex)
+
+(declare-function fileloop-continue "fileloop")
;;;
;;;###autoload
@@ -98,8 +100,11 @@ No active TAGS table is required."
(unless to
(setq to (read-string (format "Replace regexp %s with: " from))))
(reftex-access-scan-info current-prefix-arg)
- (tags-query-replace from to (or delimited current-prefix-arg)
- (list 'reftex-all-document-files))))
+ (fileloop-initialize-replace
+ from to (reftex-all-document-files)
+ (if (equal from (downcase from)) nil 'default)
+ (or delimited current-prefix-arg))
+ (fileloop-continue)))
(defvar TeX-master)
(defvar isearch-next-buffer-function)