mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Do not asynchronously prompt to save buffers after vc-checkin
* lisp/vc/vc-dispatcher.el (vc-set-async-update): Bind `non-essential' around background `vc-dir-refresh'.
This commit is contained in:
parent
4f36e9e885
commit
b6332ac21b
|
|
@ -696,7 +696,11 @@ If the current buffer visits a file, call `vc-refresh-state'."
|
|||
(with-current-buffer buf
|
||||
,@body))))))
|
||||
(cond ((derived-mode-p 'vc-dir-mode)
|
||||
(run-delayed (vc-dir-refresh)))
|
||||
(run-delayed
|
||||
;; Avoid interrupting the user with prompts to save
|
||||
;; buffers.
|
||||
(let ((non-essential t))
|
||||
(vc-dir-refresh))))
|
||||
((derived-mode-p 'dired-mode)
|
||||
(run-delayed
|
||||
(when (= (buffer-modified-tick buf) tick)
|
||||
|
|
|
|||
Loading…
Reference in a new issue