|
From: | Akira Kyle |
Subject: | "Asynchronous Requests from Emacs Dynamic Modules" |
Date: | Fri, 30 Oct 2020 15:35:12 -0600 |
User-agent: | mu4e 1.4.13; emacs 28.0.50 |
This blog post [2] has a solution to this problem by sending SIGUSR1 to Emacs, but that feels a bit hackish and forces one to do more work to manage all the different possible module threads and events that one may want to signal to Emacs. I suppose one could also conceivably also use Emacs' dbus support but that still feels clunky. Maybe its possible it's possible to use Emacs lisp's threads [2] to solve this but it's not clear to me how to go about doing so and I haven't found anyone that has done so.
Does anyone know of the best way to handle this? Perhaps the module interface should be expanded to handle this situation?
[1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Module-Functions.html#Module-Functions [2] https://www.gnu.org/software/emacs/manual/html_node/elisp/Threads.html#Threads
[3] https://nullprogram.com/blog/2017/02/14/
[Prev in Thread] | Current Thread | [Next in Thread] |