You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this function causes the error error in process sentinel: Invalid read syntax: "#". I tried a few different variations (mostly just to try things, see if any different result occurred): using something like a number instead of message, in both places; removing the #' on the lambda; etc. Same result, pretty much all times.
Removing the the thread invocation or process start did restore no error, though; e.g.
It's because the inner lambda will be converted to a closure and it will have the thread object in its scope. Since threads are not readable, it won't work.
You can quote the "worker" lambda to prevent it from being "closure-ified", but that might have other side effects.
This was fixed on Emacs 29, so it will work then. (unless you don't reference the thread variable from the worker lambda which you should not since it makes no sense as that thread won't be in the subprocess).
I was just playing around with a simple example and pretty consistently get this error with this particular setup.
I just tried:
Running this function causes the error
error in process sentinel: Invalid read syntax: "#"
. I tried a few different variations (mostly just to try things, see if any different result occurred): using something like a number instead ofmessage
, in both places; removing the#'
on thelambda
; etc. Same result, pretty much all times.Removing the the thread invocation or process start did restore no error, though; e.g.
and
The text was updated successfully, but these errors were encountered: