Open pank opened 2 years ago
Thank you for the report. For other reasons I already wanted to add synchronous processing without tempfiles (write from a buffer to pandoc on its STDIN and possibly read from its STDOUT), and was going to make this an customisation option.
Aside: typically org
saves temp files (used for e.g. async export) in a temporary folder (e.g. /tmp
on GNU/Linux) which might be a bit elegant than saving the temp file in the same folder as the "proper" file.
Hi @a-fent , I am having the same issue for batch export. While the sleep-for
workaround from @pank works for me, it would be really appreciated to have the synchronous process of running pandoc. I am also wondering if there is a way in Emacs to check whether its async processes have finished. If so, it would be better than sleep-for
IMHO. Thank you.
Minye Zhang @.***> writes:
Hi @a-fent , I am having the same issue for batch export. While the
sleep-for
workaround from @pank works for me, it would be really appreciated to have the synchronous process of running pandoc.
Feel free to submit a PR.
I am also wondering if there is a way in Emacs to check whether its async processes have finished. If so, it would be better than
sleep-for
IMHO. Thank you.
`process-status'.
-- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92
@yantar92 Thank you very much for reply. I made some modifications to address this issue and also #8 , which seems to work for me. I will submit a PR soon for review.
Hi,
Consider this example
pandoc
is called viastart-process
(i.e. asyncroniously). So Emacs isn't waiting for it and the process gets killed immediately because Emacs is done. So Emacs needs to wait for process to end.I guess an easy fix would be to call
pandoc
"syncroniously" whennoninteractive
isnon-nil
. Otherwise, it should check that the process is done.Thanks, Rasmus