aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/tooltip.el
diff options
context:
space:
mode:
authorDave Love1999-08-19 18:35:29 +0000
committerDave Love1999-08-19 18:35:29 +0000
commit01b23b99331adfc354ed2eb9e5a801f047abcbbf (patch)
treef5aac7f0bd57cd3c2081959176d0d0908fb2fb36 /lisp/tooltip.el
parent443de9cd115b6eab5b3342c85ea7390ce4f41bbd (diff)
downloademacs-01b23b99331adfc354ed2eb9e5a801f047abcbbf.tar.gz
emacs-01b23b99331adfc354ed2eb9e5a801f047abcbbf.zip
(tooltip-mode): Customize this, per convention.
(tooltip-active): Option deleted.
Diffstat (limited to 'lisp/tooltip.el')
-rw-r--r--lisp/tooltip.el35
1 files changed, 18 insertions, 17 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index ab21bf13dfd..d86d95e1fab 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -1,6 +1,6 @@
1;;; tooltip.el --- Show tooltip windows 1;;; tooltip.el --- Show tooltip windows
2 2
3;; Copyright (C) 1997 Free Software Foundation, Inc. 3;; Copyright (C) 1997, 1999 Free Software Foundation, Inc.
4 4
5;; Author: Gerd Moellmann <gerd@acm.org> 5;; Author: Gerd Moellmann <gerd@acm.org>
6;; Keywords: help c mouse tools 6;; Keywords: help c mouse tools
@@ -49,8 +49,10 @@
49 :group 'c 49 :group 'c
50 :group 'mouse 50 :group 'mouse
51 :group 'tools 51 :group 'tools
52 :version "21.1"
52 :tag "Tool Tips") 53 :tag "Tool Tips")
53 54
55(defvar tooltip-mode)
54 56
55(defcustom tooltip-delay 1.0 57(defcustom tooltip-delay 1.0
56 "Seconds to wait before displaying a tooltip the first time." 58 "Seconds to wait before displaying a tooltip the first time."
@@ -67,8 +69,8 @@
67 69
68 70
69(defcustom tooltip-recent-seconds 1 71(defcustom tooltip-recent-seconds 1
70 "Display tooltips after `tooltip-short-delay' if changing tip items 72 "Display tooltips if changing tip items within this many seconds.
71within this many seconds." 73Do so after `tooltip-short-delay'."
72 :tag "Recent seconds" 74 :tag "Recent seconds"
73 :type 'number 75 :type 'number
74 :group 'tooltip) 76 :group 'tooltip)
@@ -134,10 +136,6 @@ the last mouse movement event that occurred.")
134 "Time when the last tooltip was hidden.") 136 "Time when the last tooltip was hidden.")
135 137
136 138
137(defvar tooltip-mode nil
138 "Non-nil means tooltip mode is on.")
139
140
141(defvar tooltip-gud-debugger nil 139(defvar tooltip-gud-debugger nil
142 "The debugger for which we show tooltips.") 140 "The debugger for which we show tooltips.")
143 141
@@ -402,10 +400,10 @@ If TOOLTIP-GUD-DEREFERENCE is t, also prepend a `*' to EXPR."
402 400
403 401
404(defun tooltip-gud-tips (event) 402(defun tooltip-gud-tips (event)
405 "Show tip for identifier or selection under the mouse. The mouse 403 "Show tip for identifier or selection under the mouse.
406must either point at an identifier or inside a selected region for the 404The mouse must either point at an identifier or inside a selected
407tip window to be shown. If tooltip-gud-dereference is t, add a `*' in 405region for the tip window to be shown. If tooltip-gud-dereference is t,
408front of the printed expression. 406add a `*' in front of the printed expression.
409 407
410This function must return nil if it doesn't handle EVENT." 408This function must return nil if it doesn't handle EVENT."
411 (let (gud-buffer process) 409 (let (gud-buffer process)
@@ -462,13 +460,16 @@ Value is non-nil if this function handled the tip."
462;;; Do this after all functions have been defined that are called 460;;; Do this after all functions have been defined that are called
463;;; from `tooltip-mode'. 461;;; from `tooltip-mode'.
464 462
465(defcustom tooltip-active nil 463
466 "*Non-nil means tooltips are active." 464;;;###autoload
467 :tag "Activate tooltips" 465(defcustom tooltip-mode nil
466 "Toggle tooltip-mode.
467Setting this variable directly does not take effect;
468use either \\[customize] or the function `tooltip-mode'."
469 :set (lambda (symbol value)
470 (tooltip-mode (or value 0)))
471 :initialize 'custom-initialize-default
468 :type 'boolean 472 :type 'boolean
469 :set #'(lambda (symbol value)
470 (set-default symbol value)
471 (tooltip-mode (or value 0)))
472 :require 'tooltip 473 :require 'tooltip
473 :group 'tooltip) 474 :group 'tooltip)
474 475