branch: externals/beardbolt commit c655e2af395830b6fbfcf106f0cdf580d6be7975 Author: Jay Kamat <jaygka...@gmail.com> Commit: Jay Kamat <jaygka...@gmail.com>
Add check for dead buffers in compilation finish fn --- rmsbolt.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rmsbolt.el b/rmsbolt.el index 613e636a72..db14ddc9e6 100644 --- a/rmsbolt.el +++ b/rmsbolt.el @@ -1276,6 +1276,8 @@ Argument ASM-LINES input lines." Argument BUFFER compilation buffer. Argument STR compilation finish status. Argument OVERRIDE-BUFFER use this buffer instead of reading from the output filename." + (when (not (buffer-live-p buffer)) + (error "Dead buffer passed to compilation-finish-function! RMSBolt cannot continue.")) (let ((compilation-fail (and str (not (string-match "^finished" str))))