comparison lisp/tooltip.el @ 64296:d905b8d515a1

(tooltip-mode): Use `custom-initialize-safe-default' and simplify :init-value again. Delete autoload.
author Luc Teirlinck <teirllm@auburn.edu>
date Thu, 14 Jul 2005 00:56:53 +0000
parents 808b36b5395e
children 0610fb20bcee fbb2bea03df9
comparison
equal deleted inserted replaced
64295:f2e16ba201e0 64296:d905b8d515a1
152 ;; problem in buffers having a pre-command-hook or such installed, 152 ;; problem in buffers having a pre-command-hook or such installed,
153 ;; which does a set-buffer, like the summary buffer of Gnus. Calling 153 ;; which does a set-buffer, like the summary buffer of Gnus. Calling
154 ;; set-buffer prevents redisplay optimizations, so every mouse motion 154 ;; set-buffer prevents redisplay optimizations, so every mouse motion
155 ;; would be accompanied by a full redisplay. 155 ;; would be accompanied by a full redisplay.
156 156
157 ;;;###autoload
158 (define-minor-mode tooltip-mode 157 (define-minor-mode tooltip-mode
159 "Toggle Tooltip display. 158 "Toggle Tooltip display.
160 With ARG, turn tooltip mode on if and only if ARG is positive." 159 With ARG, turn tooltip mode on if and only if ARG is positive."
161 :global t 160 :global t
162 ;; If you change the :init-value below, you also need to change the
163 ;; corresponding code in startup.el.
164 :init-value (not (or noninteractive 161 :init-value (not (or noninteractive
165 (and (boundp 'emacs-quick-startup) emacs-quick-startup) 162 emacs-quick-startup
166 (not (and (fboundp 'display-graphic-p) 163 (not (display-graphic-p))
167 (display-graphic-p)))
168 (not (fboundp 'x-show-tip)))) 164 (not (fboundp 'x-show-tip))))
165 :initialize 'custom-initialize-safe-default
169 :group 'tooltip 166 :group 'tooltip
170 (unless (or (null tooltip-mode) (fboundp 'x-show-tip)) 167 (unless (or (null tooltip-mode) (fboundp 'x-show-tip))
171 (error "Sorry, tooltips are not yet available on this system")) 168 (error "Sorry, tooltips are not yet available on this system"))
172 (if tooltip-mode 169 (if tooltip-mode
173 (progn 170 (progn