From fab0bfc78fb2dd99c1cc67f140cd36c54991edd0 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 7 Dec 2025 15:19:23 +0000 Subject: [PATCH] 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. --- lisp/vc/vc-dir.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 05b6019065e..0cac2f55e65 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -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)