diff options
| author | Gerd Moellmann | 2000-12-18 17:11:17 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-12-18 17:11:17 +0000 |
| commit | c6da4eb44f849a605e424880b4be609876803829 (patch) | |
| tree | 2cb9bed978a738f62f2b5dd8f68dce56709f8f84 | |
| parent | 6d34f49569a04b3061a91592e0eb92fd610b5a67 (diff) | |
| download | emacs-c6da4eb44f849a605e424880b4be609876803829.tar.gz emacs-c6da4eb44f849a605e424880b4be609876803829.zip | |
(tooltip-mode): Signal an error if x-show-tip
isn't fboundp.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/tooltip.el | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1596b093cca..3ef378073ea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2000-12-18 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-12-18 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * tooltip.el (tooltip-mode): Signal an error if x-show-tip | ||
| 4 | isn't fboundp. | ||
| 5 | |||
| 3 | * server.el (server-buffer-done): Bury the buffer before | 6 | * server.el (server-buffer-done): Bury the buffer before |
| 4 | killing it. | 7 | killing it. |
| 5 | 8 | ||
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index dada23d0c2e..e02eec71884 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -197,6 +197,8 @@ This might return nil if the event did not occur over a buffer." | |||
| 197 | "Mode for tooltip display. | 197 | "Mode for tooltip display. |
| 198 | With ARG, turn tooltip mode on if and only if ARG is positive." | 198 | With ARG, turn tooltip mode on if and only if ARG is positive." |
| 199 | (interactive "P") | 199 | (interactive "P") |
| 200 | (unless (fboundp 'x-show-tip) | ||
| 201 | (error "Sorry, tooltips are not yet available on this system")) | ||
| 200 | (let* ((on (if arg | 202 | (let* ((on (if arg |
| 201 | (> (prefix-numeric-value arg) 0) | 203 | (> (prefix-numeric-value arg) 0) |
| 202 | (not tooltip-mode))) | 204 | (not tooltip-mode))) |