mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
(speedbar-handle-delete-frame): Don't try to delete the speedbar frame if nil;
that deletes the current frame or causes an error if it is the only frame.
This commit is contained in:
parent
251db0f475
commit
e5d2b9d417
1 changed files with 20 additions and 20 deletions
|
|
@ -1053,10 +1053,10 @@ supported at a time.
|
|||
"Handle a delete frame event E.
|
||||
If the deleted frame is the frame SPEEDBAR is attached to,
|
||||
we need to delete speedbar also."
|
||||
(let ((frame-to-be-deleted (car (car (cdr e)))))
|
||||
(if (eq frame-to-be-deleted dframe-attached-frame)
|
||||
(when (and speedbar-frame
|
||||
(eq (car (car (cdr e))) ;; frame to be deleted
|
||||
dframe-attached-frame))
|
||||
(delete-frame speedbar-frame)))
|
||||
)
|
||||
|
||||
;;;###autoload
|
||||
(defun speedbar-get-focus ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue