emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/buffer-env 4271cfb4e7 1/5: Animate progress reporter ev


From: ELPA Syncer
Subject: [elpa] externals/buffer-env 4271cfb4e7 1/5: Animate progress reporter even if no output happens
Date: Mon, 6 Jun 2022 09:57:18 -0400 (EDT)

branch: externals/buffer-env
commit 4271cfb4e7c48f94a20ec900e38563bccc3a643d
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Animate progress reporter even if no output happens
---
 buffer-env.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/buffer-env.el b/buffer-env.el
index 497df7f221..46dbce6aa3 100644
--- a/buffer-env.el
+++ b/buffer-env.el
@@ -215,7 +215,8 @@ When called interactively, ask for a FILE."
                            (when (process-live-p proc)
                              (let* ((msg (format-message "[buffer-env] Running 
`%s'..." file))
                                     (reporter (make-progress-reporter msg)))
-                               (while (accept-process-output proc)
+                               (while (or (accept-process-output proc 1)
+                                          (process-live-p proc))
                                  (progress-reporter-update reporter))
                                (progress-reporter-done reporter)))
                            (if (= (process-exit-status proc) 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]