1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-26 07:00:35 -08:00

vc-dir-headers: Set a delayed message during vc--count-outgoing

* lisp/vc/vc-dir.el (vc-dir-headers): Set a delayed message
during vc--count-outgoing.
This commit is contained in:
Sean Whitton 2025-12-07 15:19:23 +00:00
parent 459ecb3d26
commit fab0bfc78f

View file

@ -1363,7 +1363,12 @@ specific headers."
(vc-call-backend backend 'dir-extra-headers dir)
"\n"
(and-let* (vc-dir-show-outgoing-count
(count (ignore-errors (vc--count-outgoing backend)))
(count
(ignore-errors
(with-delayed-message
(2 (substitute-quotes "Counting outgoing revisions ...
(see `vc-dir-show-outgoing-count' if this is frequently slow)" ))
(vc--count-outgoing backend))))
(_ (plusp count)))
(concat (propertize "Outgoing : "
'face 'vc-dir-header)