Closed piyo closed 1 year ago
I forgot to mention the following: This cannot be reproduced on Emacs 27.1 on Debian.
On Darwin using Emacs 27.1, example 1 is even more broken, erroring out with: “error in process sentinel: End of file during parsing”. I think this is because the Emacs executable (from emacsforosx.com) uses ‘message to output all its loading activity at startup.
version
async package from melpa version "async-20200809.501"
description
On Emacs 27.1 for Windows, if the child process uses the message function, the arguments are inserted into the final result after the value to be passed back to the parent. The expected behavior is the arguments are not inserted after the value to be passed back to the parent.
repro 1
This code reproduces the problem:
On "GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-22", scratch-1 is '1yes and (type-of scratch-1) is 'symbol. (bad result) Also the buffer
*emacs*
contains:On "GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-12-31" scratch-1 is 1 and (type of scratch-1) is 'integer. (good result) Also the buffer
*emacs*
contains:repro 2
Another example: This code reproduces the problem:
On "GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-22", scratch-1 is 'yes and (type-of scratch-1) is 'symbol. (bad result) Also the buffer
*emacs*
contains:On "GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-12-31" scratch-1 is 1 and (type of scratch-1) is 'integer. (good result) Also the buffer
*emacs*
contains:repercussions
Currently this behavior breaks the paradox package when using async mode (
paradox--menu-execute-1
) and some of my non-published code.workaround
One temporary workaround would be to silence the message function in the child, at the user provided start-func:
This presumably breaks async-debug.
solution
Unknown.