[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 289dd53: (elisp-flymake-byte-compile): Handle kil
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] emacs-26 289dd53: (elisp-flymake-byte-compile): Handle killed buffer in sentinel |
Date: |
Fri, 22 Dec 2017 16:37:15 -0500 (EST) |
branch: emacs-26
commit 289dd53bb3c139d4f282e5bc5dbfe066f9f026ab
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
(elisp-flymake-byte-compile): Handle killed buffer in sentinel
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile):
Don't burp if the source-buffer has been killed.
---
lisp/progmodes/elisp-mode.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 4207edb..c3e7376 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1699,9 +1699,11 @@ current buffer state and calls REPORT-FN when done."
(when (eq (process-status proc) 'exit)
(unwind-protect
(cond
- ((not (eq proc (with-current-buffer source-buffer
- elisp-flymake--byte-compile-process)))
- (flymake-log :warning "byte-compile process %s obsolete"
proc))
+ ((not (and (buffer-live-p source-buffer)
+ (eq proc (with-current-buffer source-buffer
+ elisp-flymake--byte-compile-process))))
+ (flymake-log :warning
+ "byte-compile process %s obsolete" proc))
((zerop (process-exit-status proc))
(elisp-flymake--byte-compile-done report-fn
source-buffer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 289dd53: (elisp-flymake-byte-compile): Handle killed buffer in sentinel,
Stefan Monnier <=