]> git.eshelyaron.com Git - emacs.git/commit
Teach VC-Dir to automatically add and remove marks on other lines
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 6 Apr 2025 03:18:57 +0000 (11:18 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 8 Apr 2025 05:45:39 +0000 (07:45 +0200)
commita91c4a0e575ecab897adbb7c94299ff9bbcab472
tree875e2953b0687b40f5d211eefb053ca7f3cf9f49
parentc75095567fea9b72fa9275d3bebbb3ce8a1a15d2
Teach VC-Dir to automatically add and remove marks on other lines

* lisp/vc/vc-dir.el (vc-dir-allow-mass-mark-changes): New option.
(vc-dir-parent-marked-p): Replace with ...
(vc-dir--parent): ... this.
(vc-dir-children-marked-p): Replace with ...
(vc-dir--children): ... this.
(vc-dir-mark-file): Unmark subitems before marking a directory.
Offer to unmark a directory before marking a subitem.
(vc-dir-unmark-file): For an implicitly marked item, offer to
unmark it by marking everything else that's implicitly marked.
For an unmarked directory with marked subitems, offer to unmark
them all.
* etc/NEWS: Document the changes.

(cherry picked from commit 936b2efdb389488d291086d5c2189fd1a7170aa6)
lisp/vc/vc-dir.el