[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cursor position in pixels
From: |
Eric Ludlam |
Subject: |
Re: Cursor position in pixels |
Date: |
Mon, 14 Mar 2005 10:46:04 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
>>> PT <mailshield.gg@mailnull.com> seems to think that:
>I plan to implement emacs support for a language and want to display
>suggestions for the user in a pop up frame. For example, the user
>starts to type the name of a function and if he hesitates a small
>frame appears in the screen above the line the cursor is in showing
>possible completions.
>
>In order to position the popup frame correctly I need to know the
>position of the cursor in pixels relative to the top/left corner of
>the current Emacs frame. I couldn't find anything like that in the
>documentation. Is it possible?
>
>Of course, I can show the completions in an other window in the same
>frame (pop-to-buffer), but a small temporary popup frame above the
>cursor would be nicer.
I'm not sure what you mean by
"emacs support for a language and want to display suggestions for
the user in a pop up frame."
but it could be that if you add support for semantic
(cedet.sf.net/semantic.shtml), even if you don't use the full parser
architecture, you could use the popup tooltip like support built into
that framework without having to figure out pixel positions.
Cedet/Semantic tries to provide smart completions at idle time. If
that's what you are looking to do, it may be a little easier, plus you
would get a host of other useful features at the same time.
Eric