From: Glenn Morris Date: Wed, 23 Apr 2008 02:58:26 +0000 (+0000) Subject: (speedbar-use-tool-tips-flag): Check for tooltip-mode, rather than X-Git-Tag: emacs-pretest-23.0.90~6110 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/e234202b48f001924cd0f27334d7cf28a94c6afe (speedbar-use-tool-tips-flag): Check for tooltip-mode, rather than using an Emacs version test. --- diff --git a/lisp/speedbar.el b/lisp/speedbar.el index a851936ca2..8584dc5599 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el @@ -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