all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* feature request: tooltip-show-at-point
@ 2004-03-05  7:31 Masatake YAMATO
  2004-03-08 21:05 ` Miles Bader
  2004-03-09  6:24 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Masatake YAMATO @ 2004-03-05  7:31 UTC (permalink / raw)


With tooltip I'd like to show the eldoc's output at the point, not 
at the echo area. I wrote a patch for the purpose.
The main part of the patch is the following function:

(require 'avoid)
(defun eldoc-tooltip (text)
  (let* ((P (mouse-avoidance-point-position))
	 (frame (car P))
	 (x (cadr P))
	 (y (cddr P))
	 (oP (mouse-position))
	 (oframe (car oP))
	 (ox     (cadr oP))
	 (oy     (cddr oP)))
    (set-mouse-position frame x y)
    (tooltip-show text)
    (set-mouse-position oframe ox oy)))
(eldoc-tooltip "California, here I am.")

This function works, however too slow to follow the point motion 
in real time. How do you think to provide a built-in function which
show the tooltip at point?

Regards
Masatake YAMATO

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-11  7:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05  7:31 feature request: tooltip-show-at-point Masatake YAMATO
2004-03-08 21:05 ` Miles Bader
2004-03-10  5:36   ` Masatake YAMATO
2004-03-11  7:00   ` Masatake YAMATO
2004-03-09  6:24 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.