all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman@gmail.com>
To: "Kevin Burton" <burton@spinn3r.com>
Cc: Chong Yidong <cyd@stupidchicken.com>,
	emacs-devel@gnu.org, Jason Rumney <jasonr@gnu.org>
Subject: Re: Possible to show tooltip at (point) ????
Date: Mon, 29 Dec 2008 03:36:11 +0100	[thread overview]
Message-ID: <e01d8a50812281836h39427d67xa6e94054ce4392ba@mail.gmail.com> (raw)
In-Reply-To: <30c6373b0812281833v325439e8vd382b3b2cf44ac4a@mail.gmail.com>

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 <burton@spinn3r.com> 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 <lennart.borgman@gmail.com>
> 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 <burton@spinn3r.com> 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
>> > <lennart.borgman@gmail.com>
>> > wrote:
>> >>
>> >> On Sun, Dec 28, 2008 at 6:20 PM, Kevin Burton <burton@spinn3r.com>
>> >> 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
>> >> > <lennart.borgman@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> On Sun, Dec 28, 2008 at 10:53 AM, Jason Rumney <jasonr@gnu.org>
>> >> >> 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
>




  reply	other threads:[~2008-12-29  2:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-28  6:48 Possible to show tooltip at (point) ???? Kevin Burton
2008-12-28  6:55 ` Lennart Borgman
2008-12-28  9:05 ` Chong Yidong
2008-12-28  9:24   ` Kevin Burton
2008-12-28  9:53     ` Jason Rumney
2008-12-28 17:14       ` Lennart Borgman
2008-12-28 17:20         ` Kevin Burton
2008-12-28 17:31           ` Lennart Borgman
2008-12-28 17:38             ` Kevin Burton
2008-12-29  2:05             ` Kevin Burton
2008-12-29  2:14               ` Lennart Borgman
2008-12-29  2:33                 ` Kevin Burton
2008-12-29  2:36                   ` Lennart Borgman [this message]
2008-12-29  2:41                     ` Kevin Burton
2008-12-29  3:31                 ` Jason Rumney
2008-12-29  9:52                   ` Lennart Borgman
2008-12-29 18:52                     ` Kevin Burton
2008-12-28 17:07 ` Mathias Dahl
2008-12-28 17:14   ` Kevin Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50812281836h39427d67xa6e94054ce4392ba@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=burton@spinn3r.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.