aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/tooltip.el
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <[email protected]>2005-04-18 07:43:59 +0000
committerYAMAMOTO Mitsuharu <[email protected]>2005-04-18 07:43:59 +0000
commit8b8f03c80cf2ad0a17952bfcc82839601cd624f8 (patch)
treebf277e0c24b7a928aefe245c74a7dcb8ae49738f /lisp/tooltip.el
parentd4127a9a1111805640eaa06e9767a7a6f56351a5 (diff)
(tooltip-mode): `emacs-quick-startup' and `display-graphic-p' may not
be bound yet.
Diffstat (limited to 'lisp/tooltip.el')
-rw-r--r--lisp/tooltip.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index c903dbac52..89a72d570a 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -188,8 +188,9 @@ With ARG, turn tooltip mode on if and only if ARG is positive."
;; If you change the :init-value below, you also need to change the
;; corresponding code in startup.el.
:init-value (not (or noninteractive
- emacs-quick-startup
- (not (display-graphic-p))
+ (and (boundp 'emacs-quick-startup) emacs-quick-startup)
+ (not (and (fboundp 'display-graphic-p)
+ (display-graphic-p)))
(not (fboundp 'x-show-tip))))
:group 'tooltip
(unless (or (null tooltip-mode) (fboundp 'x-show-tip))