GNU bug report logs - #52142
28.0.60; `posn-object-width-height' does not reflect actual dimensions of object when confronted by display string

Previous Next

Package: emacs;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Sat, 27 Nov 2021 12:01:02 UTC

Severity: normal

Tags: notabug

Found in version 28.0.60

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Po Lu <luangruo <at> yahoo.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#52142: closed (28.0.60; `posn-object-width-height' does not
 reflect actual dimensions of object when confronted by display string)
Date: Sat, 27 Nov 2021 13:14:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 27 Nov 2021 21:12:55 +0800
with message-id <874k7xagiw.fsf <at> yahoo.com>
and subject line Re: bug#52142: 28.0.60; `posn-object-width-height' does not reflect actual dimensions of object when confronted by display string
has caused the debbugs.gnu.org bug report #52142,
regarding 28.0.60; `posn-object-width-height' does not reflect actual dimensions of object when confronted by display string
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
52142: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52142
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Po Lu <luangruo <at> yahoo.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.60; `posn-object-width-height' does not reflect actual
 dimensions of object when confronted by display string
Date: Sat, 27 Nov 2021 20:00:17 +0800
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".

Thanks.


[Message part 3 (message/rfc822, inline)]
From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52142-done <at> debbugs.gnu.org
Subject: Re: 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 21:12:55 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Thanks, fixed.

I think it's OK to close this bug now then.

> Did you try window-text-pixel-size?

No, for whatever reason I assumed it would not work for text displayed
this way.  I will try it.

Thanks.


This bug report was last modified 3 years and 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.