diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 17d1aef9730..bf5318a0473 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -749,8 +749,6 @@ ARG and NO-CONFIRM are passed on to `revert-buffer'." (defvar view-old-buffer-read-only) -(declare-function auto-revert-buffers "autorevert") - (defun vc-resynch-window (file &optional keep noquery reset-vc-info) "If FILE is in the current buffer, either revert or unvisit it. The choice between revert (to see expanded keywords) and unvisit @@ -768,13 +766,7 @@ editing!" ((file-exists-p file) (when reset-vc-info (vc-file-clearprops file)) - ;; If `auto-revert-mode' is on (probably due to either - ;; `global-auto-revert-mode' or `vc-auto-revert-mode') - ;; then defer to that. Otherwise we do our own - ;; VC-specific reverting. - (if (and (bound-and-true-p auto-revert-mode) noquery) - (auto-revert-buffers) - (vc-revert-buffer-internal t noquery)) + (vc-revert-buffer-internal t noquery) ;; VC operations might toggle the read-only state. In ;; that case we need to adjust the `view-mode' status