From 7a9da5d6a08153e36bbf9ee3e29ef2442735d65f Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Thu, 27 Apr 2023 12:11:45 -0400 Subject: [PATCH] Make vc-hg-annotate-command async There's no benefit in this running the process synchrounously, and it's annoying for it to block the Emacs UI. * lisp/vc/vc-hg.el (vc-hg-annotate-command): Run asynchronously. --- lisp/vc/vc-hg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index f64c342f99c..78231a0c954 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -578,7 +578,7 @@ vc-hg-revision-completion-table (defun vc-hg-annotate-command (file buffer &optional revision) "Execute \"hg annotate\" on FILE, inserting the contents in BUFFER. Optional arg REVISION is a revision to annotate from." - (apply #'vc-hg-command buffer 0 file "annotate" "-dq" "-n" + (apply #'vc-hg-command buffer 'async file "annotate" "-dq" "-n" (append (vc-switches 'hg 'annotate) (if revision (list (concat "-r" revision)))))) -- 2.30.2