Re: emacs-31 b6332ac21b1: Do not asynchronously prompt to save buffers after vc-checkin

Stefan Monnier <[email protected]> Fri, 31 Jul 2026 15:29:27 -0400
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
> --- 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.


=== Stefan