ubolonton / emacs-module-rs

Rust binding and tools for Emacs's dynamic modules
340 stars 22 forks source link

How to call Elisp functions from a backgroud thread? #53

Closed zbelial closed 1 year ago

zbelial commented 1 year ago

I wannt to start a new thread and then call Elisp functions within that thread, but I found that Env does not implement Sync or Send. So is there anyway to archive my goal? Thanks.

More information about my use case:
I'd like to start a subprocess and read repeatedly its output in a loop in a thread, after reading in some data, I'll call a Elisp function to tell Emacs.

zbelial commented 1 year ago

It seems that emacs-env itself does not support this use case. Closing this issue.