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 15:03:11 +0200 Message-ID: <837dctzr74.fsf@gnu.org> References: <87v90dajvy.fsf.ref@yahoo.com> <87v90dajvy.fsf@yahoo.com> <83ee71zslx.fsf@gnu.org> <87czmlahpw.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31609"; 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 14:04:10 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 1mqxNB-0007ye-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Nov 2021 14:04:09 +0100 Original-Received: from localhost ([::1]:43188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqxNA-0004u5-0k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Nov 2021 08:04:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqxN4-0004tr-4m for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2021 08:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqxN3-000318-T3 for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2021 08:04:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqxN3-0005C7-Oj for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2021 08:04:01 -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 13:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52142 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 52142-submit@debbugs.gnu.org id=B52142.163801819519914 (code B ref 52142); Sat, 27 Nov 2021 13:04:01 +0000 Original-Received: (at 52142) by debbugs.gnu.org; 27 Nov 2021 13:03:15 +0000 Original-Received: from localhost ([127.0.0.1]:33182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqxMJ-0005B8-0F for submit@debbugs.gnu.org; Sat, 27 Nov 2021 08:03:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqxMH-0005Aw-FM for 52142@debbugs.gnu.org; Sat, 27 Nov 2021 08:03:13 -0500 Original-Received: from [2001:470:142:3::e] (port=58022 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 1mqxMC-0002wc-6K; Sat, 27 Nov 2021 08:03:08 -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=MarO0usBBdOR10LsiGGnEYCD+LAd5wS1BBGTNZNnISI=; b=rdkIfDlaGh26 IKhSjMepE3q6h4Albx2jHaYyiIGYDFeKbhCreiPI0tKPNrW0XjXVtb6q4SqoazflQcz8z7EGofqJm u9nWR8rJGpmiRa/p19cU8RwkqpqectFpahtC2tc4hipCDXq0nDV++uusUiGIaxYTnDW1XR0WVXAOt jiiZgFGkBku+t8uBoLJGeVAaAa5LSPO21u2xq3c/RrbcEoTZrbVNCkyBqSxSVJd0HwHfIwhy6VVkY Ryf9tddcrUpd6UvEPQ240U6bA+ncJC4aiY0zsn98NMZ+GTkqGjsRRodRo1wdref7nB7UOsQIYLZMj VfVe4VXdeuLwxr4tseZSQA==; Original-Received: from [87.69.77.57] (port=1482 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 1mqxMB-0008Ae-Oy; Sat, 27 Nov 2021 08:03:08 -0500 In-Reply-To: <87czmlahpw.fsf@yahoo.com> (message from Po Lu on Sat, 27 Nov 2021 20:47:07 +0800) 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:220917 Archived-At: > From: Po Lu > Cc: 52142@debbugs.gnu.org > Date: Sat, 27 Nov 2021 20:47:07 +0800 > > Eli Zaretskii writes: > > > 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. > > Hmm, okay. I think the documentation in (elisp)Click Events could do > with some improvement: Thanks, fixed. > > Remember: this stuff was originally designed for mouse clicks, where > > it's important to know what did you click on. > > Thanks. On a slightly unrelated topic, what would be the appropriate > method to obtain the height of such a display string? I'm trying to > make the pixel scrolling machinery work with such text, and while > scrolling down already works, I have no idea how to implement scrolling > up, which currently relies on going to the last screen line, then > adjusting vscroll the remainder of the way, which naturally requires a > way to fetch the height of the display string. Did you try window-text-pixel-size?