Ciao, I confirm the bug and also the fix suggested by Rudi. The attached patch solves the problem. Thanks Rudi for the bug report. Vincenzo In data lunedì 31 marzo 2025 17:16:55 Ora legale dell’Europa centrale, Eli Zaretskii ha scritto: > > From: Rudi Schlatte > > Date: Mon, 31 Mar 2025 16:35:59 +0200 > > > > > > Hi, the following recipe leads to a state where speedbar-window cannot > > be activated anymore. > > > > - M-x speedbar-window RET > > - Move point into the speedbar side window, e.g., by clicking into the > > window > > - C-x k RET (killing the speedbar buffer) > > - M-x speedbar-window RET > > > > After this, the following can be found in *Messages*: > > > > speedbar-window: Attempt to delete the sole visible or iconified frame > > DFRAME TIMER ERROR: (error "Selecting deleted buffer") > > > > Adding (buffer-live-p speedbar-buffer) into speedbar-frame-or-window > > seems to fix this: > > > > (defun speedbar-frame-or-window () > > > > "Return `frame' or `window' if one of each are open. > > > > Return nil if both are closed." > > > > (cond > > > > ((speedbar-window--live-p) > > > > 'window) > > > > ((and (frame-live-p (speedbar-current-frame)) > > > > speedbar-buffer > > > > (buffer-live-p speedbar-buffer) ; <<< HERE > > > > (not (speedbar-window--live-p))) > > > > 'frame) > > > > (t nil))) > > Thanks. > > Vincenzo, could you please look into this?