Skip to content

Commit a14e27d

Browse files
committed
Be a little more efficient when joining Pandoc processes
* jupyter-org-client.el (jupyter-org--process-pandoc-results): Do it.
1 parent 3dfac79 commit a14e27d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter-org-client.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,8 +1924,10 @@ the return value for asynchronous Jupyter source blocks in
19241924
(setcar h (jupyter-org-raw-string (buffer-string))))))
19251925
procs))
19261926
(setq head (cdr head)))
1927-
(while (cl-find-if #'process-live-p procs)
1928-
(accept-process-output nil 0.1))
1927+
(while procs
1928+
(while (process-live-p (car procs))
1929+
(accept-process-output nil 0.1))
1930+
(pop procs))
19291931
results))
19301932

19311933
(defun jupyter-org-sync-results (req)

0 commit comments

Comments
 (0)