comparison lisp/speedbar.el @ 67227:d02e0d3b5db9

(speedbar-default-position): New defcustom. (speedbar-frame-reposition-smartly): Use it.
author Romain Francoise <romain@orebokech.com>
date Wed, 30 Nov 2005 21:15:11 +0000
parents ce5979f4b405
children 3bd95f4f2941 7beb78bc1f8e
comparison
equal deleted inserted replaced
67226:fd62535b63a8 67227:d02e0d3b5db9
328 328
329 (defcustom speedbar-track-mouse-flag (not speedbar-use-tool-tips-flag) 329 (defcustom speedbar-track-mouse-flag (not speedbar-use-tool-tips-flag)
330 "*Non-nil means to display info about the line under the mouse." 330 "*Non-nil means to display info about the line under the mouse."
331 :group 'speedbar 331 :group 'speedbar
332 :type 'boolean) 332 :type 'boolean)
333
334 (defcustom speedbar-default-position 'left-right
335 "*Default position of the speedbar frame.
336 Possible values are 'left, 'right or 'left-right.
337 If value is 'left-right, the most suitable location is
338 determined automatically."
339 :group 'speedbar
340 :type '(radio (const :tag "Automatic" left-right)
341 (const :tag "Left" left)
342 (const :tag "Right" right)))
333 343
334 (defcustom speedbar-sort-tags nil 344 (defcustom speedbar-sort-tags nil
335 "*If non-nil, sort tags in the speedbar display. *Obsolete*. 345 "*If non-nil, sort tags in the speedbar display. *Obsolete*.
336 Use `semantic-tag-hierarchy-method' instead." 346 Use `semantic-tag-hierarchy-method' instead."
337 :group 'speedbar 347 :group 'speedbar
965 (cdr (assoc 'top speedbar-frame-parameters)))) 975 (cdr (assoc 'top speedbar-frame-parameters))))
966 ) 976 )
967 (t 977 (t
968 (dframe-reposition-frame speedbar-frame 978 (dframe-reposition-frame speedbar-frame
969 (dframe-attached-frame speedbar-frame) 979 (dframe-attached-frame speedbar-frame)
970 'left-right)))) 980 speedbar-default-position))))
971 981
972 (defun speedbar-detach () 982 (defun speedbar-detach ()
973 "Detach the current Speedbar from auto-updating. 983 "Detach the current Speedbar from auto-updating.
974 Doing this allows the creation of a second speedbar." 984 Doing this allows the creation of a second speedbar."
975 (interactive) 985 (interactive)