Re: emacs-31 b6332ac21b1: Do not asynchronously prompt to save buffers after vc-checkin
Sean Whitton <[email protected]> Mon, 03 Aug 2026 17:04:56 +0100
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Monnier [31/Jul 3:29pm -04] wrote: >> --- 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) > > I'd argue we can move the let-binding to the local `run-delayed` macro, actually. I don't mind if you'd like to implement that, though I'd like to keep the comment about this particular problem case it solves. -- Sean Whitton