Prevent Abort dialogs from async-compiling jobs on Windows

* lisp/emacs-lisp/comp.el (comp-run-async-workers): Disable Abort
dialog popping in the sub-processes that perform async
compilation, by passing w32-disable-abort-dialog=t on their
command line.
This commit is contained in:
Eli Zaretskii 2022-12-17 20:35:11 +02:00
parent 4d1e4a4893
commit 5a245bc786

View file

@ -4005,8 +4005,11 @@ display a message."
:command (list
(expand-file-name invocation-name
invocation-directory)
"-no-comp-spawn" "--batch" "-l"
temp-file)
"-no-comp-spawn" "--batch"
"--eval"
;; Suppress Abort dialogs on MS-Windows
"(setq w32-disable-abort-dialog t)"
"-l" temp-file)
:sentinel
(lambda (process _event)
(run-hook-with-args