emacs-devel
[Top][All Lists]
Advanced

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

Re: Possible to show tooltip at (point) ????


From: Kevin Burton
Subject: Re: Possible to show tooltip at (point) ????
Date: Sun, 28 Dec 2008 18:41:49 -0800

Hm..... that's interesting.  So hopefully this is fixed in 23..... I can implement a hack for 22 and then disable it under 23...

Kevin

On Sun, Dec 28, 2008 at 6:36 PM, Lennart Borgman <address@hidden> wrote:
GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-12-26  - ie w32


On Mon, Dec 29, 2008 at 3:33 AM, Kevin Burton <address@hidden> wrote:
> What platform are you on?  What's your emacs-version?
> Mine is:
> GNU Emacs 22.3.2 (i386-apple-darwin9.5.0, Carbon Version 1.6.0) of
> 2008-09-21 on plume.sr.unh.edu - Aquamacs Distribution 1.5
>
> On Sun, Dec 28, 2008 at 6:14 PM, Lennart Borgman <address@hidden>
> wrote:
>>
>> For me it works also if the window is split. The only problem I have
>> seen is with the margins. Maybe this is platform dependent?
>>
>> I use this in nXhtml where it used for popup menus for completion in
>> XHTML. If you want to it is easy to test there.
>>
>>
>> On Mon, Dec 29, 2008 at 3:05 AM, Kevin Burton <address@hidden> wrote:
>> > Yes..... this DOES work but for a window that's not split.... as soon as
>> > you
>> > split the window the coord is for the first window (not the second).
>> > I guess I could look at the current window configuration and double the
>> > current Y if the window is split in half....
>> > Kind of hacky but could work for a proof of concept.
>> > Kevin
>> >
>> > On Sun, Dec 28, 2008 at 9:31 AM, Lennart Borgman
>> > <address@hidden>
>> > wrote:
>> >>
>> >> 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.)
>> >
>> >
>> >
>> > --
>> > Founder/CEO Spinn3r.com
>> > Location: San Francisco, CA
>> > AIM/YIM: sfburtonator
>> > Skype: burtonator
>> > Work: http://spinn3r.com
>> >
>
>
>
> --
> Founder/CEO Spinn3r.com
> Location: San Francisco, CA
> AIM/YIM: sfburtonator
> Skype: burtonator
> Work: http://spinn3r.com
>



--
Founder/CEO Spinn3r.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com

reply via email to

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