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:
Aaron L. Zeng 2026-07-21 18:23:16 -04:00 committed by Sean Whitton
parent 4f36e9e885
commit b6332ac21b

View file

@ -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)