Function: speedbar-find-file-in-frame
speedbar-find-file-in-frame is a byte-compiled function defined in
speedbar.el.gz.
Signature
(speedbar-find-file-in-frame FILE)
Documentation
This will load FILE into the speedbar attached frame.
If the file is being displayed in a different frame already, then raise that frame instead.
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-find-file-in-frame (file)
"This will load FILE into the speedbar attached frame.
If the file is being displayed in a different frame already, then raise that
frame instead."
(let* ((buff (find-file-noselect file))
(bwin (get-buffer-window buff 0)))
(if bwin
(progn
(select-window bwin)
(raise-frame (window-frame bwin)))
(if dframe-power-click
(let ((pop-up-frames t)) (select-window (display-buffer buff)))
(if (numberp speedbar-select-frame-method)
(other-frame speedbar-select-frame-method)
(dframe-select-attached-frame speedbar-frame))
(switch-to-buffer buff))))
)