diff options
| author | Stefan Monnier | 2017-12-22 16:00:07 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2017-12-22 16:37:12 -0500 |
| commit | 289dd53bb3c139d4f282e5bc5dbfe066f9f026ab (patch) | |
| tree | 2d38017211cd23b7509f9dacd589948e64fdd9bd | |
| parent | cf36c821278414cad8584c690210577ad0a38e70 (diff) | |
| download | emacs-289dd53bb3c139d4f282e5bc5dbfe066f9f026ab.tar.gz emacs-289dd53bb3c139d4f282e5bc5dbfe066f9f026ab.zip | |
(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.
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 4207edb8af5..c3e73767f90 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." | |||
| 1699 | (when (eq (process-status proc) 'exit) | 1699 | (when (eq (process-status proc) 'exit) |
| 1700 | (unwind-protect | 1700 | (unwind-protect |
| 1701 | (cond | 1701 | (cond |
| 1702 | ((not (eq proc (with-current-buffer source-buffer | 1702 | ((not (and (buffer-live-p source-buffer) |
| 1703 | elisp-flymake--byte-compile-process))) | 1703 | (eq proc (with-current-buffer source-buffer |
| 1704 | (flymake-log :warning "byte-compile process %s obsolete" proc)) | 1704 | elisp-flymake--byte-compile-process)))) |
| 1705 | (flymake-log :warning | ||
| 1706 | "byte-compile process %s obsolete" proc)) | ||
| 1705 | ((zerop (process-exit-status proc)) | 1707 | ((zerop (process-exit-status proc)) |
| 1706 | (elisp-flymake--byte-compile-done report-fn | 1708 | (elisp-flymake--byte-compile-done report-fn |
| 1707 | source-buffer | 1709 | source-buffer |