emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: tooltip-show-at-point


From: Eli Zaretskii
Subject: Re: feature request: tooltip-show-at-point
Date: 09 Mar 2004 08:24:30 +0200

> Date: Fri, 05 Mar 2004 16:31:50 +0900 (JST)
> From: Masatake YAMATO <address@hidden>
> 
> (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?

Isn't the existing machinery on tooltip.el good enough for that?  If
not, why not?  In particular, it looks like adding your function to
the tooltip-hook list would be the solution (see tooltip-mode), no?

Or am I missing something?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]