changeset 64202:32225b9cc7d5

(tooltip-mode): Use custom-initialize-safe-default and simplify :init-value. Delete obsolete comment.
author Luc Teirlinck <teirllm@auburn.edu>
date Sun, 10 Jul 2005 16:40:11 +0000
parents 43f2b7f50a25
children 6398fcc6fd76
files lisp/tooltip.el
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tooltip.el	Sun Jul 10 16:36:04 2005 +0000
+++ b/lisp/tooltip.el	Sun Jul 10 16:40:11 2005 +0000
@@ -159,13 +159,11 @@
   "Toggle Tooltip display.
 With ARG, turn tooltip mode on if and only if ARG is positive."
   :global t
-  ;; If you change the :init-value below, you also need to change the
-  ;; corresponding code in startup.el.
   :init-value (not (or noninteractive
-		       (and (boundp 'emacs-quick-startup) emacs-quick-startup)
-		       (not (and (fboundp 'display-graphic-p)
-				 (display-graphic-p)))
+		       emacs-quick-startup
+		       (not (display-graphic-p))
 		       (not (fboundp 'x-show-tip))))
+  :initialize 'custom-initialize-safe-default
   :group 'tooltip
   (unless (or (null tooltip-mode) (fboundp 'x-show-tip))
     (error "Sorry, tooltips are not yet available on this system"))