On 25 January 2016 at 05:17, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
 
There's no problem doing non-Lisp things in a separate thread.  But
doing anything that calls Lisp stuff from the non-main thread is, if I
understand things correctly, highly iffy.

Which makes things rather awkward.

Thank you for the information.

Don't you think it would make sense to add some kind of standardised functionality to Emacs that allows native code running in a thread to asynchronously call a callback function in the Lisp code? The function would be added to the event queue to be run in the Emacs main thread at some point in the future.

In essence, I'm suggesting something similar to SwingUtilities.invokeLater() from Java.

Regards,
Elias