changeset 61614:5739226d2d8c

(tooltip-mode): `emacs-quick-startup' and `display-graphic-p' may not be bound yet.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Mon, 18 Apr 2005 07:43:59 +0000
parents 20086071cf3c
children 351bda10c1b0
files lisp/tooltip.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tooltip.el	Mon Apr 18 01:20:34 2005 +0000
+++ b/lisp/tooltip.el	Mon Apr 18 07:43:59 2005 +0000
@@ -188,8 +188,9 @@
   ;; 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))