changeset 33355:4161fec906e0

(command-line): Set the default tooltip-mode to t for graphical displays which implement x-show-tip.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 09 Nov 2000 23:47:28 +0000
parents 516e70b9fc74
children 73a360d50e18
files lisp/startup.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Thu Nov 09 23:05:07 2000 +0000
+++ b/lisp/startup.el	Thu Nov 09 23:47:28 2000 +0000
@@ -765,6 +765,12 @@
     (setq-default blink-cursor t)
     (blink-cursor-mode 1))
 
+  (when (and (not noninteractive)
+	     (display-graphic-p)
+	     (fboundp 'x-show-tip))
+    (setq-default tooltip-mode t)
+    (tooltip-mode 1))
+
   ;; Register default TTY colors for the case the terminal hasn't a
   ;; terminal init file.
   (or (memq window-system '(x w32))