]> code.delx.au - gnu-emacs/commitdiff
(speedbar-use-tool-tips-flag): Check for tooltip-mode, rather than
authorGlenn Morris <rgm@gnu.org>
Wed, 23 Apr 2008 02:58:26 +0000 (02:58 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 23 Apr 2008 02:58:26 +0000 (02:58 +0000)
using an Emacs version test.

lisp/speedbar.el

index a851936ca2dae46ff4e93f2a5451a0ae8b9f08e0..8584dc55991151ebb42ceb37b574ecd1278e22ec 100644 (file)
@@ -386,9 +386,8 @@ error occurred, and the next fetch routine is tried.
 INSERT is a function which takes an INDENTation level, and a LIST of
 tags to insert.  It will then create the speedbar buttons.")
 
-(defcustom speedbar-use-tool-tips-flag (and (not (featurep 'xemacs))
-                                      (>= emacs-major-version 21))
-  "*Non-nil means to use tool tips if they are avaialble.
+(defcustom speedbar-use-tool-tips-flag (fboundp 'tooltip-mode)
+  "Non-nil means to use tool tips if they are avaialble.
 When tooltips are not available, mouse-tracking and minibuffer
 display is used instead."
   :group 'speedbar