From 7226082f46fc2b68aaca7b4308e72d483bae8f67 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 4 Jun 2026 10:49:23 +0100 Subject: [PATCH] vc-dir-refresh: Respect non-essential wrt saving buffers * lisp/vc/vc-dir.el (vc-dir-refresh): If non-essential is non-nil, don't call vc-buffer-sync-fileset. --- lisp/vc/vc-dir.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 2cb56aac715..27513f463bd 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -1522,7 +1522,7 @@ Throw an error if another update process is in progress." (error "Another update process is in progress, cannot run two at a time") (let ((def-dir default-directory) (backend vc-dir-backend)) - (when vc-dir-save-some-buffers-on-revert + (when (and vc-dir-save-some-buffers-on-revert (not non-essential)) (vc-buffer-sync-fileset `(,vc-dir-backend (,def-dir)) t)) (vc-set-mode-line-busy-indicator) ;; Call the `dir-status' backend function.