1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-03 11:33:37 +00:00

* lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state.

This commit is contained in:
Stefan Monnier 2015-10-28 14:00:59 -04:00
parent dfa2e4a6e6
commit 0cbe7a2332

View File

@ -688,7 +688,7 @@ This is an internal function used by Auto-Revert Mode."
;; `preserve-modes' avoids changing the (minor) modes. But we do
;; want to reset the mode for VC, so we do it manually.
(when (or revert auto-revert-check-vc-info)
(vc-find-file-hook))))
(vc-refresh-state))))
(defun auto-revert-tail-handler (size)
(let ((modified (buffer-modified-p))