From: Kim F. Storm Date: Mon, 21 Mar 2005 22:16:22 +0000 (+0000) Subject: (tooltip-show-help-function): Check car and cdr of X-Git-Tag: ttn-vms-21-2-B4~1638 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e07aa7db90330dd60b179ca4bd69708f57a1b063;p=emacs.git (tooltip-show-help-function): Check car and cdr of mouse position. --- 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." expr))))))) (defun gdb-tooltip-print () - (tooltip-show + (tooltip-show (with-current-buffer (gdb-get-buffer 'gdb-partial-output-buffer) (let ((string (buffer-string))) ;; 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." (string-match "^mouse-2" msg)) (setq mp (mouse-pixel-position)) (consp (setq pos (cdr mp))) + (car pos) (cdr pos) (setq pos (posn-at-x-y (car pos) (cdr pos) (car mp))) (windowp (posn-window pos))) (with-current-buffer (window-buffer (posn-window pos))