From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83ee71zslx.fsf@gnu.org> References: <87v90dajvy.fsf.ref@yahoo.com> <87v90dajvy.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13909"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52142@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 27 13:33:33 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqwtY-0003MY-30 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Nov 2021 13:33:32 +0100 Original-Received: from localhost ([::1]:60308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqwtR-0003NF-U0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Nov 2021 07:33:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqwtE-0003Mj-Jt for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2021 07:33:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqwt4-0006n7-EC for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2021 07:33:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqwt4-0002Bn-AP for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2021 07:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Nov 2021 12:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52142 X-GNU-PR-Package: emacs Original-Received: via spool by 52142-submit@debbugs.gnu.org id=B52142.16380163648375 (code B ref 52142); Sat, 27 Nov 2021 12:33:02 +0000 Original-Received: (at 52142) by debbugs.gnu.org; 27 Nov 2021 12:32:44 +0000 Original-Received: from localhost ([127.0.0.1]:33133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqwsm-0002B0-A8 for submit@debbugs.gnu.org; Sat, 27 Nov 2021 07:32:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqwsk-00026V-Q4; Sat, 27 Nov 2021 07:32:43 -0500 Original-Received: from [2001:470:142:3::e] (port=57260 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqwsf-0006lx-IE; Sat, 27 Nov 2021 07:32:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kFUmhxBKK0+fkf2XKtkP0L1sPLjXzmbpLFO6pzqcpPQ=; b=YkdY/G2DbQVZ a91Rvm+1MetHvdXs1vxtwm4g2I2LYOpvbhmCZmbzAJqSuduzVfIVqB/IfP3x3pBb2e79ekgtjUYEK BcAldmJkk9jAaA0u4KmhMjmc8hB6PcECP6fvGzUnEYqwcHqN7Z72dHwwLFAtdB7tjxa3I2YMx8vWh AtclR5m0pOZzBBVlzytC1xmUW1jaldAm4soaYIOS9CuNyZYR2M6XdTrcggkw7eo/BZNfmjB+P4RBE DKGb0M2Z5uemqet54ExQG5WjX4Mced2IvSPNkWFKtqPFy5L3EqzHnRIBXTTKaAmW/Py58gcFl4GEK Gke0FjOv9RI7f5GW5Y6/nw==; Original-Received: from [87.69.77.57] (port=3392 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqwsd-0003rp-Tk; Sat, 27 Nov 2021 07:32:37 -0500 In-Reply-To: <87v90dajvy.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220913 Archived-At: 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" > > 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.