> From: Zhu Zihao <all_but_last@163.com>
> Date: Sat, 31 Oct 2020 11:18:43 +0800
> Cc: emacs-devel@gnu.org
>
> What about callbacks? You can pass a Lisp closure to module and call the
> closure from module.
How will this work, if the callback is called asynchronously? The
Lisp interpreter cannot be reentered.
I think the method described by Stefan is the only sane path towards
solving these situations. It uses the infrastructure Emacs itself
uses for asynchronous interactions.