From 5bc5e565761fe40941ecc76ee6c28f01387f0980 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 23 Apr 2022 14:52:45 +0200 Subject: [PATCH] Make elisp-flymake-byte-compile clean up on failures * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Clean up no matter what the exit status of the process is (bug#55056). --- lisp/progmodes/elisp-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 8cae680634f..33f69024919 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -2083,7 +2083,7 @@ current buffer state and calls REPORT-FN when done." :connection-type 'pipe :sentinel (lambda (proc _event) - (when (eq (process-status proc) 'exit) + (unless (process-live-p proc) (unwind-protect (cond ((not (and (buffer-live-p source-buffer) -- 2.39.2