From 5a245bc786e2c07907936ff022c675a50ed7978c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 17 Dec 2022 20:35:11 +0200 Subject: [PATCH] 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. --- lisp/emacs-lisp/comp.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 7b562aaa53d..2c306d892c7 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -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 -- 2.39.5