diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2005-04-20 10:08:50 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2005-04-20 10:08:50 +0000 |
commit | 1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f (patch) | |
tree | 1a9e10f2ef4ceee2f31b5238c96f932f11204d8c /lisp | |
parent | 12b47dbf1f3b02221a2f50acd054d6f36e5171a3 (diff) | |
download | emacs-1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f.tar.gz emacs-1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f.tar.bz2 emacs-1d44496d70f0cdcd2c840a9ba2a7c3820e2e8f7f.zip |
(tooltip-gud-tips-p): Expand documentation.
(tooltip-toggle-gud-tips): New function.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/tooltip.el | 19 |
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." :group 'tooltip) (defcustom tooltip-gud-tips-p nil - "*Non-nil means show tooltips in GUD sessions." + "*Non-nil means show tooltips in GUD sessions. + +This allows you to display a variable's value in a tooltip simply by +pointing at it with the mouse." :type 'boolean :tag "GUD" :group 'tooltip) @@ -412,12 +415,22 @@ This event can be examined by forms in TOOLTIP-GUD-DISPLAY.") (message "Dereferencing is now %s." (if tooltip-gud-dereference "on" "off")))) +(defun tooltip-toggle-gud-tips () + "Toggle the display of GUD tooltips." + (interactive) + (setq tooltip-gud-tips-p (not tooltip-gud-tips-p)) + ;; Reconsider for all buffers whether mouse motion events are desired. + (tooltip-change-major-mode) + (when (interactive-p) + (message (format "GUD tooltips %sabled" + (if tooltip-gud-tips-p "en" "dis"))))) + ; This will only display data that comes in one chunk. ; Larger arrays (say 400 elements) are displayed in ; the tootip incompletely and spill over into the gud buffer. ; Switching the process-filter creates timing problems and -; it may be difficult to do better. gdba in gdb-ui.el -; gets round this problem. +; it may be difficult to do better. Using annotations as in +; gdb-ui.el gets round this problem. (defun tooltip-gud-process-output (process output) "Process debugger output and show it in a tooltip window." (set-process-filter process tooltip-gud-original-filter) |