(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.
This commit is contained in:
parent
cf36c82127
commit
289dd53bb3
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue