diff options
| author | Luc Teirlinck | 2005-07-10 16:40:11 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-07-10 16:40:11 +0000 |
| commit | 9ccfc415b92022867ffd1e6b57e7db78b30f49d7 (patch) | |
| tree | 476f58e6343b075d21864e21f2796a90a62a8588 | |
| parent | 93ad71f8230961a48b21640bd883e2656185c041 (diff) | |
| download | emacs-9ccfc415b92022867ffd1e6b57e7db78b30f49d7.tar.gz emacs-9ccfc415b92022867ffd1e6b57e7db78b30f49d7.zip | |
(tooltip-mode): Use custom-initialize-safe-default and simplify
:init-value. Delete obsolete comment.
| -rw-r--r-- | lisp/tooltip.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index fabb154d7ed..169ffafbbef 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -159,13 +159,11 @@ This might return nil if the event did not occur over a buffer." | |||
| 159 | "Toggle Tooltip display. | 159 | "Toggle Tooltip display. |
| 160 | With ARG, turn tooltip mode on if and only if ARG is positive." | 160 | With ARG, turn tooltip mode on if and only if ARG is positive." |
| 161 | :global t | 161 | :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 | 162 | :init-value (not (or noninteractive |
| 165 | (and (boundp 'emacs-quick-startup) emacs-quick-startup) | 163 | emacs-quick-startup |
| 166 | (not (and (fboundp 'display-graphic-p) | 164 | (not (display-graphic-p)) |
| 167 | (display-graphic-p))) | ||
| 168 | (not (fboundp 'x-show-tip)))) | 165 | (not (fboundp 'x-show-tip)))) |
| 166 | :initialize 'custom-initialize-safe-default | ||
| 169 | :group 'tooltip | 167 | :group 'tooltip |
| 170 | (unless (or (null tooltip-mode) (fboundp 'x-show-tip)) | 168 | (unless (or (null tooltip-mode) (fboundp 'x-show-tip)) |
| 171 | (error "Sorry, tooltips are not yet available on this system")) | 169 | (error "Sorry, tooltips are not yet available on this system")) |