[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 bugs in posn-at-x-y on a tty
From: |
Nick Roberts |
Subject: |
Re: 2 bugs in posn-at-x-y on a tty |
Date: |
Sat, 15 Jan 2005 03:40:39 +1300 |
> I have added an optional fourth arg to posn-at-x-y to make the
> coordinates relative to the whole window. You must set that
> to t to get the correct position for a mode or header line.
Thanks that fixes the bug with the margin. I think this should be the default
behaviour. posn-at-x-y is dual use: x-y can be pixel or character based
co-ordinates. I guess there should be some analogy between the two uses and
it is perhap a matter of opinion how that analogy should work. On a tty, the
mode-line is considered part of the window in this way (this is what makes it
accessible with posn-at-x-y), so it seems natural that the margin is
also. AFAIK, so far posn-at-x-y is only used in tooltip.el and that is pixel
based.
The other bug still seems to be present: the mode-line string seems to be one
character out (I'm a bit confused because your message also seems to imply that
this bug was also fixed).
Nick