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

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

[elpa] externals/beardbolt 0bc89903f1 231/323: on-kill-buffer: Fix error


From: ELPA Syncer
Subject: [elpa] externals/beardbolt 0bc89903f1 231/323: on-kill-buffer: Fix error on missing output-buffer
Date: Thu, 9 Mar 2023 10:58:33 -0500 (EST)

branch: externals/beardbolt
commit 0bc89903f1e779487ce8c76f6c41113105c26266
Author: Erik Arvstedt <erik.arvstedt@gmail.com>
Commit: Erik Arvstedt <erik.arvstedt@gmail.com>

    on-kill-buffer: Fix error on missing output-buffer
---
 rmsbolt.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rmsbolt.el b/rmsbolt.el
index 3086d08d7b..10d992eef3 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1716,7 +1716,7 @@ Are you running two compilations at the same time?"))
     (rmsbolt-update-overlays)))
 
 (defun rmsbolt--on-kill-buffer ()
-  (let ((output-buffer (get-buffer rmsbolt-output-buffer)))
+  (when-let (output-buffer (get-buffer rmsbolt-output-buffer))
     (when (or (eq (current-buffer) output-buffer)
               (eq (current-buffer) (buffer-local-value 'rmsbolt-src-buffer 
output-buffer)))
       (rmsbolt--remove-overlays))))



reply via email to

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