mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(tooltip-show-help-function): Check car and cdr of
mouse position.
This commit is contained in:
parent
f0ebf1ebe7
commit
e07aa7db90
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue