diff options
| author | Eli Zaretskii | 2013-10-08 18:11:29 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-10-08 18:11:29 +0300 |
| commit | f3370a94fd887e9e01db81a86e42036d12dcda9b (patch) | |
| tree | 4c85ed0de2f9044ba89cb584ac0264823ec0b9ca | |
| parent | afd8eb2cb062e63135812775e7377bc968ac28ee (diff) | |
| download | emacs-f3370a94fd887e9e01db81a86e42036d12dcda9b.tar.gz emacs-f3370a94fd887e9e01db81a86e42036d12dcda9b.zip | |
Preload tooltip.el unconditionally.
| -rw-r--r-- | lisp/loadup.el | 2 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 2 | ||||
| -rw-r--r-- | lisp/tooltip.el | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el index c32bd00463e..27148ceea75 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -276,7 +276,7 @@ | |||
| 276 | 276 | ||
| 277 | (load "vc/vc-hooks") | 277 | (load "vc/vc-hooks") |
| 278 | (load "vc/ediff-hook") | 278 | (load "vc/ediff-hook") |
| 279 | (if (fboundp 'x-show-tip) (load "tooltip")) | 279 | (if (not (eq system-type 'ms-dos)) (load "tooltip")) |
| 280 | 280 | ||
| 281 | ;If you want additional libraries to be preloaded and their | 281 | ;If you want additional libraries to be preloaded and their |
| 282 | ;doc strings kept in the DOC file rather than in core, | 282 | ;doc strings kept in the DOC file rather than in core, |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index fe2d9caf10f..557c24d6128 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -2374,7 +2374,7 @@ first (leftmost) menu-bar item; you can select other items by typing | |||
| 2374 | :group 'display | 2374 | :group 'display |
| 2375 | :version "24.4") | 2375 | :version "24.4") |
| 2376 | 2376 | ||
| 2377 | (defvar tty-menu--initial-menu-x 10 | 2377 | (defvar tty-menu--initial-menu-x 1 |
| 2378 | "X coordinate of the first menu-bar menu dropped by F10. | 2378 | "X coordinate of the first menu-bar menu dropped by F10. |
| 2379 | 2379 | ||
| 2380 | This is meant to be used only for debugging TTY menus.") | 2380 | This is meant to be used only for debugging TTY menus.") |
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index 657951d7b75..6ffa55bc14d 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -58,9 +58,7 @@ echo area, instead of making a pop-up window." | |||
| 58 | :init-value t | 58 | :init-value t |
| 59 | :initialize 'custom-initialize-delay | 59 | :initialize 'custom-initialize-delay |
| 60 | :group 'tooltip | 60 | :group 'tooltip |
| 61 | (unless (or (null tooltip-mode) (fboundp 'x-show-tip)) | 61 | (if (and tooltip-mode (fboundp 'x-show-tip)) |
| 62 | (error "Sorry, tooltips are not yet available on this system")) | ||
| 63 | (if tooltip-mode | ||
| 64 | (progn | 62 | (progn |
| 65 | (add-hook 'pre-command-hook 'tooltip-hide) | 63 | (add-hook 'pre-command-hook 'tooltip-hide) |
| 66 | (add-hook 'tooltip-functions 'tooltip-help-tips)) | 64 | (add-hook 'tooltip-functions 'tooltip-help-tips)) |