Function: speedbar-window--handle-window-buffer-change
speedbar-window--handle-window-buffer-change is a byte-compiled
function defined in speedbar.el.gz.
Signature
(speedbar-window--handle-window-buffer-change W)
Documentation
Handle the change of the window that displays the speedbar-buffer.
If W displays the speedbar-buffer buffer, update speedbar--window
if necessary.
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-window--handle-window-buffer-change (w)
"Handle the change of the window that displays the `speedbar-buffer'.
If W displays the `speedbar-buffer' buffer, update `speedbar--window'
if necessary."
(when (and
(eq (window-buffer w) speedbar-buffer)
(not (eq speedbar--window w)))
(setq speedbar--window w)))