aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2005-04-20 10:08:50 +0000
committerNick Roberts2005-04-20 10:08:50 +0000
commit1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f (patch)
tree1a9e10f2ef4ceee2f31b5238c96f932f11204d8c
parent12b47dbf1f3b02221a2f50acd054d6f36e5171a3 (diff)
downloademacs-1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f.tar.gz
emacs-1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f.zip
(tooltip-gud-tips-p): Expand documentation.
(tooltip-toggle-gud-tips): New function.
-rw-r--r--lisp/tooltip.el19
1 files changed, 16 insertions, 3 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 054f9c95711..840aa3c2006 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -117,7 +117,10 @@ position to pop up the tooltip."
117 :group 'tooltip) 117 :group 'tooltip)
118 118
119(defcustom tooltip-gud-tips-p nil 119(defcustom tooltip-gud-tips-p nil
120 "*Non-nil means show tooltips in GUD sessions." 120 "*Non-nil means show tooltips in GUD sessions.
121
122This allows you to display a variable's value in a tooltip simply by
123pointing at it with the mouse."
121 :type 'boolean 124 :type 'boolean
122 :tag "GUD" 125 :tag "GUD"
123 :group 'tooltip) 126 :group 'tooltip)
@@ -412,12 +415,22 @@ This event can be examined by forms in TOOLTIP-GUD-DISPLAY.")
412 (message "Dereferencing is now %s." 415 (message "Dereferencing is now %s."
413 (if tooltip-gud-dereference "on" "off")))) 416 (if tooltip-gud-dereference "on" "off"))))
414 417
418(defun tooltip-toggle-gud-tips ()
419 "Toggle the display of GUD tooltips."
420 (interactive)
421 (setq tooltip-gud-tips-p (not tooltip-gud-tips-p))
422 ;; Reconsider for all buffers whether mouse motion events are desired.
423 (tooltip-change-major-mode)
424 (when (interactive-p)
425 (message (format "GUD tooltips %sabled"
426 (if tooltip-gud-tips-p "en" "dis")))))
427
415; This will only display data that comes in one chunk. 428; This will only display data that comes in one chunk.
416; Larger arrays (say 400 elements) are displayed in 429; Larger arrays (say 400 elements) are displayed in
417; the tootip incompletely and spill over into the gud buffer. 430; the tootip incompletely and spill over into the gud buffer.
418; Switching the process-filter creates timing problems and 431; Switching the process-filter creates timing problems and
419; it may be difficult to do better. gdba in gdb-ui.el 432; it may be difficult to do better. Using annotations as in
420; gets round this problem. 433; gdb-ui.el gets round this problem.
421(defun tooltip-gud-process-output (process output) 434(defun tooltip-gud-process-output (process output)
422 "Process debugger output and show it in a tooltip window." 435 "Process debugger output and show it in a tooltip window."
423 (set-process-filter process tooltip-gud-original-filter) 436 (set-process-filter process tooltip-gud-original-filter)