diff options
| author | Luc Teirlinck | 2005-07-14 00:56:53 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-07-14 00:56:53 +0000 |
| commit | 5fc5466286e8a149863199bdc79aa936185837d6 (patch) | |
| tree | 8a41d732805cbd1358a556d9f5bca2b21dd7339e | |
| parent | c736d6cff689df097b396d823c9db7168809c091 (diff) | |
| download | emacs-5fc5466286e8a149863199bdc79aa936185837d6.tar.gz emacs-5fc5466286e8a149863199bdc79aa936185837d6.zip | |
(tooltip-mode): Use `custom-initialize-safe-default' and simplify
:init-value again. Delete autoload.
| -rw-r--r-- | lisp/tooltip.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index fabb154d7ed..309edde1749 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -154,18 +154,15 @@ This might return nil if the event did not occur over a buffer." | |||
| 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")) |