]> git.eshelyaron.com Git - emacs.git/commitdiff
Added a check to see if the 'speedbar-buffer' is still alive
authorVincenzo Pupillo <v.pupillo@gmail.com>
Mon, 31 Mar 2025 19:49:36 +0000 (21:49 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Apr 2025 16:50:04 +0000 (18:50 +0200)
Fix suggested by Rudi Schlatte <rudi@constantly.at>.
* lisp/speedbar.el (speedbar-frame-or-window): Added an additional check
to see if 'speedbar-buffer' is still alive (bug#77405).

(cherry picked from commit 31e744e581bfaf2c75d01204cc07d2da886ae252)

lisp/speedbar.el

index 5a4766c712ed611ca6d8e1d072736d11e670a1fb..3a2e6166aa2e414405e926c462870a78fbdcaa53 100644 (file)
@@ -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)))