2005-11-30 Romain Francoise <romain@orebokech.com>
+ * speedbar.el (speedbar-default-position): New defcustom.
+ (speedbar-frame-reposition-smartly): Use it.
+
* dframe.el (dframe-reposition-frame-emacs): Fix position
computation for 'left location.
Update copyright year.
:group 'speedbar
:type 'boolean)
+(defcustom speedbar-default-position 'left-right
+ "*Default position of the speedbar frame.
+Possible values are 'left, 'right or 'left-right.
+If value is 'left-right, the most suitable location is
+determined automatically."
+ :group 'speedbar
+ :type '(radio (const :tag "Automatic" left-right)
+ (const :tag "Left" left)
+ (const :tag "Right" right)))
+
(defcustom speedbar-sort-tags nil
"*If non-nil, sort tags in the speedbar display. *Obsolete*.
Use `semantic-tag-hierarchy-method' instead."
(t
(dframe-reposition-frame speedbar-frame
(dframe-attached-frame speedbar-frame)
- 'left-right))))
+ speedbar-default-position))))
(defun speedbar-detach ()
"Detach the current Speedbar from auto-updating.