From 787f18010deb7f84ede432ffb66351453436ee26 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 5 Sep 2025 15:22:31 +0100 Subject: [PATCH] vc-dir-mark-unmark: When region active, don't do any y/n prompting * lisp/vc/vc-dir.el (vc-dir-mark-unmark): When region active, bind vc-dir-allow-mass-mark-changes to nil. --- 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 4651468f1ff..18848577052 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -689,7 +689,7 @@ With prefix argument ARG, move that many lines." (setq processed-line (line-number-at-pos)) (condition-case nil ;; Avoid any prompting. - (let ((vc-dir-allow-mass-mark-changes nil)) + (let (vc-dir-allow-mass-mark-changes) (funcall mark-unmark-function)) ;; `vc-dir-mark-file' signals an error if we try marking ;; a directory containing marked files in its tree, or a