[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible to show tooltip at (point) ????
From: |
Lennart Borgman |
Subject: |
Re: Possible to show tooltip at (point) ???? |
Date: |
Sun, 28 Dec 2008 18:31:01 +0100 |
On Sun, Dec 28, 2008 at 6:20 PM, Kevin Burton <address@hidden> wrote:
> In the predictive package?
> I think one just needs to compute the left-margin width.
Here is what I have. There is indeed a problem with the left margin.
What change do you propose?
(defun point-to-coord (point)
"Return coordinates of POINT in selected window.
The coordinates are in the form \(\(XOFFSET YOFFSET) WINDOW).
This form is suitable for `popup-menu'."
;; Fix-me: showtip.el adds (window-inside-pixel-edges
;; (selected-window)). Why?
(let* ((pn (posn-at-point point))
(x-y (posn-x-y pn))
(x (car x-y))
(y (cdr x-y))
(pos (list (list x (+ y 20)) (selected-window))))
pos))
> I wrote a tooltip-at-point package a few years ago (but never got it t work
> reliably) and added this into the mix....
> Kevin
>
> On Sun, Dec 28, 2008 at 9:14 AM, Lennart Borgman <address@hidden>
> wrote:
>>
>> On Sun, Dec 28, 2008 at 10:53 AM, Jason Rumney <address@hidden> wrote:
>> > Kevin Burton wrote:
>> >>
>> >> You mean by specifying top and left? I think that is what I was going
>> >> to
>> >> do to position the tooltip but first I need to find out the x/y of the
>> >> current point.
>> >
>> > (posn-at-point &optional POS WINDOW)
>>
>> I think there is a bug with left margin. (Though I have not had time
>> to submit a bug report for this.)
- Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Lennart Borgman, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Chong Yidong, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Jason Rumney, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Lennart Borgman, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????,
Lennart Borgman <=
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Lennart Borgman, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Lennart Borgman, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Jason Rumney, 2008/12/28
- Re: Possible to show tooltip at (point) ????, Lennart Borgman, 2008/12/29
- Re: Possible to show tooltip at (point) ????, Kevin Burton, 2008/12/29
Re: Possible to show tooltip at (point) ????, Mathias Dahl, 2008/12/28