From: Drew Adams <drew.adams@oracle.com>
To: martin rudalics <rudalics@gmx.at>, Eli Zaretskii <eliz@gnu.org>,
emacs-devel@gnu.org
Subject: RE: Display-relative coordinates
Date: Fri, 29 Jul 2016 08:38:14 -0700 (PDT) [thread overview]
Message-ID: <b74fa20f-fb9f-4a6b-8924-863bf196b094@default> (raw)
In-Reply-To: <579AEF99.30108@gmx.at>
> > It would still be useful, I think, to have a function that returns
> > directly the screen-relative pixel coordinates
>
> ‘window-absolute-pixel-position’ does that already.
I see. Sounds good to me. As I said, in the Emacs 25 build I have,
which is not recent, for a measured value of 354 pixels it returned
335 pixels. And that difference corresponds, I guess, to the fact
that I measured to the cursor bottom, whereas `w-a-p-p' returns
the distance (height) to the "upper/left corner of the glyph at
POSITION." The height of a line in emacs -Q, as Eli says, is 16,
and 354 - 16 = 338, which is ~335. I only measured visually, and
my eye was probably off by 3 pixels for this.
next prev parent reply other threads:[~2016-07-29 15:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 14:41 Display-relative coordinates Eli Zaretskii
2016-07-28 19:07 ` martin rudalics
2016-07-28 20:20 ` Drew Adams
2016-07-29 5:54 ` martin rudalics
2016-07-29 15:38 ` Drew Adams [this message]
[not found] <<831t2dsu3y.fsf@gnu.org>
2016-07-28 20:20 ` Drew Adams
2016-07-29 13:39 ` Eli Zaretskii
[not found] <<<831t2dsu3y.fsf@gnu.org>
[not found] ` <<bd748cdc-2ab2-4576-9e85-1040706ffcc8@default>
[not found] ` <<83d1lwr2at.fsf@gnu.org>
2016-07-29 15:38 ` Drew Adams
2016-07-29 17:42 ` Eli Zaretskii
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=b74fa20f-fb9f-4a6b-8924-863bf196b094@default \
--to=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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).