1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-05 05:21:26 -08:00

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.
This commit is contained in:
Sean Whitton 2025-09-05 15:22:31 +01:00
parent 9f7cdcb454
commit 787f18010d

View file

@ -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