diff options
| author | Kim F. Storm | 2005-03-21 22:16:22 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-03-21 22:16:22 +0000 |
| commit | e07aa7db90330dd60b179ca4bd69708f57a1b063 (patch) | |
| tree | bab2b9683bfd5fd1f90f250c12d38c771a57d8e6 | |
| parent | f0ebf1ebe769079f2817fcd7a4d435d05c6d73db (diff) | |
| download | emacs-e07aa7db90330dd60b179ca4bd69708f57a1b063.tar.gz emacs-e07aa7db90330dd60b179ca4bd69708f57a1b063.zip | |
(tooltip-show-help-function): Check car and cdr of
mouse position.
| -rw-r--r-- | lisp/tooltip.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el index e4cab1beba1..05ba204511a 100644 --- a/lisp/tooltip.el +++ b/lisp/tooltip.el | |||
| @@ -454,7 +454,7 @@ This function must return nil if it doesn't handle EVENT." | |||
| 454 | expr))))))) | 454 | expr))))))) |
| 455 | 455 | ||
| 456 | (defun gdb-tooltip-print () | 456 | (defun gdb-tooltip-print () |
| 457 | (tooltip-show | 457 | (tooltip-show |
| 458 | (with-current-buffer (gdb-get-buffer 'gdb-partial-output-buffer) | 458 | (with-current-buffer (gdb-get-buffer 'gdb-partial-output-buffer) |
| 459 | (let ((string (buffer-string))) | 459 | (let ((string (buffer-string))) |
| 460 | ;; remove newline for tooltip-use-echo-area | 460 | ;; remove newline for tooltip-use-echo-area |
| @@ -477,6 +477,7 @@ MSG is either a help string to display, or nil to cancel the display." | |||
| 477 | (string-match "^mouse-2" msg)) | 477 | (string-match "^mouse-2" msg)) |
| 478 | (setq mp (mouse-pixel-position)) | 478 | (setq mp (mouse-pixel-position)) |
| 479 | (consp (setq pos (cdr mp))) | 479 | (consp (setq pos (cdr mp))) |
| 480 | (car pos) (cdr pos) | ||
| 480 | (setq pos (posn-at-x-y (car pos) (cdr pos) (car mp))) | 481 | (setq pos (posn-at-x-y (car pos) (cdr pos) (car mp))) |
| 481 | (windowp (posn-window pos))) | 482 | (windowp (posn-window pos))) |
| 482 | (with-current-buffer (window-buffer (posn-window pos)) | 483 | (with-current-buffer (window-buffer (posn-window pos)) |