aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-16 15:07:37 +0200
committerLars Ingebrigtsen2019-06-16 15:21:17 +0200
commite25d6cb0381c641e61bcf69e420a41186df06299 (patch)
treee20ac148036045d88c08db9cf8fc353fcd96300b
parentf0bf0d0779d6a8430b95ce55d66ee836611ef44f (diff)
downloademacs-e25d6cb0381c641e61bcf69e420a41186df06299.tar.gz
emacs-e25d6cb0381c641e61bcf69e420a41186df06299.zip
Use fileloop directly in vc-dir to avoid obsolete function
* lisp/vc/vc-dir.el (vc-dir-query-replace-regexp): Rewrite to use fileloop directly to avoid the obsolete function tags-query-replace.
-rw-r--r--lisp/vc/vc-dir.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
index 6afc599d4c8..7af1e0db4ff 100644
--- a/lisp/vc/vc-dir.el
+++ b/lisp/vc/vc-dir.el
@@ -45,6 +45,8 @@
45;;; Code: 45;;; Code:
46(eval-when-compile (require 'cl-lib)) 46(eval-when-compile (require 'cl-lib))
47 47
48(declare-function fileloop-continue "fileloop")
49
48(defcustom vc-dir-mode-hook nil 50(defcustom vc-dir-mode-hook nil
49 "Normal hook run by `vc-dir-mode'. 51 "Normal hook run by `vc-dir-mode'.
50See `run-hooks'." 52See `run-hooks'."
@@ -823,8 +825,11 @@ with the command \\[tags-loop-continue]."
823 (if (and buffer (with-current-buffer buffer 825 (if (and buffer (with-current-buffer buffer
824 buffer-read-only)) 826 buffer-read-only))
825 (error "File `%s' is visited read-only" file)))) 827 (error "File `%s' is visited read-only" file))))
826 (tags-query-replace from to delimited 828 (fileloop-initialize-replace
827 '(mapcar 'car (vc-dir-marked-only-files-and-states)))) 829 from to (mapcar 'car (vc-dir-marked-only-files-and-states))
830 (if (equal from (downcase from)) nil 'default)
831 delimited)
832 (fileloop-continue))
828 833
829(defun vc-dir-ignore () 834(defun vc-dir-ignore ()
830 "Ignore the current file." 835 "Ignore the current file."