]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent Abort dialogs from async-compiling jobs on Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 17 Dec 2022 18:35:11 +0000 (20:35 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Dec 2022 18:35:11 +0000 (20:35 +0200)
* 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

index 7b562aaa53d784dc865eaecf4632125c9773ce4b..2c306d892c74b4d0d2be67b6bd2e9c99456b381e 100644 (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