Function: speedbar-frame-reposition-smartly

speedbar-frame-reposition-smartly is a byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-frame-reposition-smartly)

Documentation

Reposition the speedbar frame to be next to the attached frame.

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-frame-reposition-smartly ()
  "Reposition the speedbar frame to be next to the attached frame."
  (cond ((or (assoc 'left speedbar-frame-parameters)
             (assoc 'top speedbar-frame-parameters))
	 ;; if left/top were specified in the parameters, pass them
	 ;; down to the reposition function
	 (dframe-reposition-frame
	  speedbar-frame
	  (dframe-attached-frame speedbar-frame)
	  (cons (cdr (assoc 'left speedbar-frame-parameters))
		(cdr (assoc 'top  speedbar-frame-parameters))))
	 )
	(t
	 (dframe-reposition-frame speedbar-frame
				  (dframe-attached-frame speedbar-frame)
				  speedbar-default-position))))