emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/beardbolt c655e2af39 186/323: Add check for dead buffer


From: ELPA Syncer
Subject: [elpa] externals/beardbolt c655e2af39 186/323: Add check for dead buffers in compilation finish fn
Date: Thu, 9 Mar 2023 10:58:30 -0500 (EST)

branch: externals/beardbolt
commit c655e2af395830b6fbfcf106f0cdf580d6be7975
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]