diff options
| author | Vincenzo Pupillo | 2025-03-31 21:49:36 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-01 14:26:30 +0300 |
| commit | 31e744e581bfaf2c75d01204cc07d2da886ae252 (patch) | |
| tree | 68be58aa47d1d918b15bedbda7343dc7b688079f | |
| parent | 4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115 (diff) | |
| download | emacs-31e744e581bfaf2c75d01204cc07d2da886ae252.tar.gz emacs-31e744e581bfaf2c75d01204cc07d2da886ae252.zip | |
Added a check to see if the 'speedbar-buffer' is still alive
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).
| -rw-r--r-- | lisp/speedbar.el | 3 |
1 files changed, 2 insertions, 1 deletions
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." | |||
| 1048 | ((speedbar-window--live-p) | 1048 | ((speedbar-window--live-p) |
| 1049 | 'window) | 1049 | 'window) |
| 1050 | ((and (frame-live-p (speedbar-current-frame)) | 1050 | ((and (frame-live-p (speedbar-current-frame)) |
| 1051 | speedbar-buffer | 1051 | speedbar-buffer |
| 1052 | (buffer-live-p speedbar-buffer) | ||
| 1052 | (not (speedbar-window--live-p))) | 1053 | (not (speedbar-window--live-p))) |
| 1053 | 'frame) | 1054 | 'frame) |
| 1054 | (t nil))) | 1055 | (t nil))) |