From: "Kevin Burton" <burton@spinn3r.com>
To: "Lennart Borgman" <lennart.borgman@gmail.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: Sun, 28 Dec 2008 18:05:29 -0800 [thread overview]
Message-ID: <30c6373b0812281805odc4b2d7n549c6304ceb62553@mail.gmail.com> (raw)
In-Reply-To: <e01d8a50812280931m188f90eer5c2f52a01b8a59a4@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1993 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2955 bytes --]
next prev parent reply other threads:[~2008-12-29 2:05 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 [this message]
2008-12-29 2:14 ` Lennart Borgman
2008-12-29 2:33 ` Kevin Burton
2008-12-29 2:36 ` Lennart Borgman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30c6373b0812281805odc4b2d7n549c6304ceb62553@mail.gmail.com \
--to=burton@spinn3r.com \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=lennart.borgman@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).