[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 21 font issues and manual window manipulation.
From: |
Kevin A. Burton |
Subject: |
Re: Emacs 21 font issues and manual window manipulation. |
Date: |
22 Oct 2001 02:11:09 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eli Zaretskii <address@hidden> writes:
> On 22 Oct 2001, Kevin A. Burton wrote:
>
> > > > This work in theory but there is no way for me to get an x-offset and
> > > > y-offset for the tooltip because Emacs doesn't provide any way for me to
> > > > find the x-offset and y-offset for the pointer.
> > >
> > > I think you don't need to. See the doc string of x-show-tip: it says
> > > that if
> > > tooltip-frame-parameters alist includes `left' and `top' parameters, these
> > > parameters determine where the tooltip is popped.
> >
> > Yes... but where do I get the integer value for left and top?
>
> These are the coordinates of point in character cell units,
No. Left and top are *not* character cell units. They are pixel relative to
the current display.
> like for any other Emacs frame. You should be able to compute them from the
> top and left coordinates of the frame or window and the relative position of
> point inside the window.
I tried this too. It is too flaky.
- - menu-bar-mode, scroll-bar-mode, etc get in the way.
- - the presence of setnu-mode and other glyphs can screw this up :(
> > > Adding this would be a simple matter of providing a Lisp wrapper around
> > > glyph_to_pixel_coords, I think.
> >
> > I assume that on *NIX systems this is defined in xterm.c?
>
> Probably, but "M-." will tell ;-)
>
> > This is frame-relative and x-show-tip is display relative. I need to get
> > the
> > x,y coords for the point WRT the display.
>
> ??? Why wrt the display? Don't you want the tooltip at some frame-relative
> position, or even just near point, as if the user moved the mouse pointer
> above the text she just typed?
It shouldn't have anything to do with the mouse pointer. :). This can be too
far away from where the users eyes are currently directed (just like the
minibuffer).
Instead I need this right next to the point. The current x-show-tip is relative
to the mouse pointer and not the (point) :(
> > BTW it is *REALLY* awesome to see this mailing list has been created :)
>
> It existed for more than a year, the only news is that it is now public, so
> you can subscribe if you want. But you could post to it even before.
OK.. must have missed it. I didn't see savanah until about 3 months ago.
Kevin
- --
Need a good Engineer? Hire me! ( Java | P2P | XML | Linux | Open Source )
Kevin A. Burton ( address@hidden, address@hidden, address@hidden )
Location - San Francisco, CA, Cell - 415-595-9965
Jabber - address@hidden, Web - http://relativity.yi.org
Linux is both Open Source and Free Software, Java is neither!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
iD8DBQE70+HgAwM6xb2dfE0RAq/RAKC+XimkiWUHCmioXJvV3W+nLz60AwCgjZAw
NcEajxxpNTWheqa03WdqfkE=
=oF7j
-----END PGP SIGNATURE-----
- Emacs 21 font issues and manual window manipulation., Kevin A. Burton, 2001/10/22
- Re: Emacs 21 font issues and manual window manipulation., Eli Zaretskii, 2001/10/22
- Re: Emacs 21 font issues and manual window manipulation., Eli Zaretskii, 2001/10/22
- Re: Emacs 21 font issues and manual window manipulation.,
Kevin A. Burton <=
- Re: Emacs 21 font issues and manual window manipulation., Eli Zaretskii, 2001/10/22
- Re: Emacs 21 font issues and manual window manipulation., Miles Bader, 2001/10/22
- Re: Emacs 21 font issues and manual window manipulation., Eli Zaretskii, 2001/10/22
Re: Emacs 21 font issues and manual window manipulation., Gerd Moellmann, 2001/10/22