unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 52142@debbugs.gnu.org
Subject: bug#52142: 28.0.60; `posn-object-width-height' does not reflect actual dimensions of object when confronted by display string
Date: Sat, 27 Nov 2021 14:32:42 +0200	[thread overview]
Message-ID: <83ee71zslx.fsf@gnu.org> (raw)
In-Reply-To: <87v90dajvy.fsf@yahoo.com> (bug-gnu-emacs@gnu.org)

tags 52142 notabug
thanks

> Date: Sat, 27 Nov 2021 20:00:17 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> In Emacs -Q, run M-x report-emacs-bug RET, move point to the message
> intended for novices (This bug report will be sent to the Bug-GNU-Emacs
> mailing list ...), and then evaluate (posn-at-point) there.
> 
> The posn-object of the position list will be the display string
> containing the entire message, but the posn-object-width-height will
> contain the dimensions of the first character of the message, in this
> case "T".

That's a feature.  Maybe it isn't documented clearly enough, but
basically as long as there's a character displayed at that position,
WIDTH and HEIGHT give the dimensions of that character's glyph on
display.

Remember: this stuff was originally designed for mouse clicks, where
it's important to know what did you click on.





  reply	other threads:[~2021-11-27 12:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87v90dajvy.fsf.ref@yahoo.com>
2021-11-27 12:00 ` bug#52142: 28.0.60; `posn-object-width-height' does not reflect actual dimensions of object when confronted by display string Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-27 12:32   ` Eli Zaretskii [this message]
2021-11-27 12:47     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-27 13:03       ` Eli Zaretskii
2021-11-27 13:12         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-27 13:27           ` 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=83ee71zslx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=52142@debbugs.gnu.org \
    --cc=luangruo@yahoo.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).