emacs-31 b6332ac21b1: Do not asynchronously prompt to save buffers after vc-checkin
Sean Whitton <[email protected]> Thu, 30 Jul 2026 17:34:08 -0400 (EDT)
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: emacs-31 commit b6332ac21b12bc15083935574a18d0316d31b02b Author: Aaron L. Zeng <[email protected]> Commit: Sean Whitton <[email protected]> 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'. --- lisp/vc/vc-dispatcher.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 2111b8f2900..53ab1da1c60 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -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)