From 31e744e581bfaf2c75d01204cc07d2da886ae252 Mon Sep 17 00:00:00 2001 From: Vincenzo Pupillo Date: Mon, 31 Mar 2025 21:49:36 +0200 Subject: [PATCH] Added a check to see if the 'speedbar-buffer' is still alive Fix suggested by Rudi Schlatte . * lisp/speedbar.el (speedbar-frame-or-window): Added an additional check to see if 'speedbar-buffer' is still alive (bug#77405). --- lisp/speedbar.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 6ad96c979d6..b1fd141321c 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el @@ -1048,7 +1048,8 @@ Return nil if both are closed." ((speedbar-window--live-p) 'window) ((and (frame-live-p (speedbar-current-frame)) - speedbar-buffer + speedbar-buffer + (buffer-live-p speedbar-buffer) (not (speedbar-window--live-p))) 'frame) (t nil)))