Mercurial > emacs
comparison lisp/tooltip.el @ 90201:fbb2bea03df9
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-69
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 474-484)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 88-91)
- Merge from emacs--cvs-trunk--0
- Update FSF's address in GPL notices
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 14 Jul 2005 08:02:00 +0000 |
parents | f9a65d7ebd29 d905b8d515a1 |
children | 890cc78a5a24 |
comparison
equal
deleted
inserted
replaced
90200:f9a65d7ebd29 | 90201:fbb2bea03df9 |
---|---|
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 |