branch: elpa/gnu-indent
commit f31dbe60478b6270bb57b6b05998df8eec56f801
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@disroot.org>

    Use process-live-p in gnu-indent-region
---
 gnu-indent.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu-indent.el b/gnu-indent.el
index 590e2d9b2f..c561568495 100644
--- a/gnu-indent.el
+++ b/gnu-indent.el
@@ -87,7 +87,8 @@ When called non-interactively, indent text between BEG and 
END."
             (send-region process beg end)
             (process-send-eof process)
             (redisplay)
-            (while (accept-process-output process 0.01))
+            (while (process-live-p process)
+              (sleep-for 0.01))
             (unless (eq (process-exit-status process) 0)
               (pop-to-buffer (process-buffer process))
               (error "GNU Indent exited with non-zero status"))

Reply via email to