mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
vc-resynch-window: Restore always using vc-revert-buffer-internal
* lisp/vc/vc-dispatcher.el (auto-revert-buffers): Delete. (vc-resynch-window): Always call vc-revert-buffer-internal. Calling auto-revert-buffers will not necessarily revert the current buffer, but we want it to happen synchronously.
This commit is contained in:
parent
24c09c68dd
commit
cd86307f26
1 changed files with 1 additions and 9 deletions
|
|
@ -749,8 +749,6 @@ ARG and NO-CONFIRM are passed on to `revert-buffer'."
|
||||||
|
|
||||||
(defvar view-old-buffer-read-only)
|
(defvar view-old-buffer-read-only)
|
||||||
|
|
||||||
(declare-function auto-revert-buffers "autorevert")
|
|
||||||
|
|
||||||
(defun vc-resynch-window (file &optional keep noquery reset-vc-info)
|
(defun vc-resynch-window (file &optional keep noquery reset-vc-info)
|
||||||
"If FILE is in the current buffer, either revert or unvisit it.
|
"If FILE is in the current buffer, either revert or unvisit it.
|
||||||
The choice between revert (to see expanded keywords) and unvisit
|
The choice between revert (to see expanded keywords) and unvisit
|
||||||
|
|
@ -768,13 +766,7 @@ editing!"
|
||||||
((file-exists-p file)
|
((file-exists-p file)
|
||||||
(when reset-vc-info
|
(when reset-vc-info
|
||||||
(vc-file-clearprops file))
|
(vc-file-clearprops file))
|
||||||
;; If `auto-revert-mode' is on (probably due to either
|
(vc-revert-buffer-internal t noquery)
|
||||||
;; `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 operations might toggle the read-only state. In
|
;; VC operations might toggle the read-only state. In
|
||||||
;; that case we need to adjust the `view-mode' status
|
;; that case we need to adjust the `view-mode' status
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue