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#54862: 28.1; window-text-pixel-size sometimes fails to report accurate pixel-width Date: Tue, 26 Apr 2022 15:04:35 +0300 Message-ID: <831qxkm4oc.fsf@gnu.org> References: <83tuay4c2b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2647"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54862-done@debbugs.gnu.org To: triska@metalevel.at Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 26 14:05:23 2022 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 1njJwY-0000Ur-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 14:05:22 +0200 Original-Received: from localhost ([::1]:43992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njJwX-0005mo-1L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Apr 2022 08:05:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njJwF-0005jn-AK for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 08:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njJwF-0007Ft-0F for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 08:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njJwE-0001mQ-Qe for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2022 08:05:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Apr 2022 12:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 54862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 54862@debbugs.gnu.org, eliz@gnu.org, triska@metalevel.at Original-Received: via spool by 54862-done@debbugs.gnu.org id=D54862.16509746956822 (code D ref 54862); Tue, 26 Apr 2022 12:05:02 +0000 Original-Received: (at 54862-done) by debbugs.gnu.org; 26 Apr 2022 12:04:55 +0000 Original-Received: from localhost ([127.0.0.1]:37342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njJw6-0001lx-Sg for submit@debbugs.gnu.org; Tue, 26 Apr 2022 08:04:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njJw5-0001lm-Vg for 54862-done@debbugs.gnu.org; Tue, 26 Apr 2022 08:04:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njJw0-0007Ct-5q; Tue, 26 Apr 2022 08:04:48 -0400 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=PNspUZgpTbGHeO8Mvl9FeFL+U0TwH+oT9sVKG4AZtLI=; b=sNko/HcqK8rJ yMkj7Fd0stsOBdjGOHL9u7nzm9PPx1KcthOxuI2YUYst0erEEHrJDczPTrY9njoXAMhHh8DQS3X6X C8z0atUwZNoYToQdeN1F7ZL2/saVCStAEIzF2/1tFIQfODlsklzA480ZmlOc3kWQpm7g/aHUppKls 4VKudOCkLVBkk1yflBff8qYFS+wWM8jCUe2zocneTx3pWPy6GSXfJ6EW7tj1ScWWrKuPjVldaCiCU SrACiuTTKsCfNZnk7Taz5Rkrzz4Um6wgqDciFX6KLNI1Z5P6mCClMvPBXkfv/mS1e0IWqJr+EjL4f ccDg+qQjlNFMsrL0Q2+Ohg==; Original-Received: from [87.69.77.57] (port=3224 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 1njJvz-0007GF-IS; Tue, 26 Apr 2022 08:04:47 -0400 In-Reply-To: <83tuay4c2b.fsf@gnu.org> (message from Eli Zaretskii on Tue, 12 Apr 2022 17:21:32 +0300) 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:230706 Archived-At: > Date: Tue, 12 Apr 2022 17:21:32 +0300 > From: Eli Zaretskii > Cc: 54862@debbugs.gnu.org > > > From: Markus Triska > > Date: Mon, 11 Apr 2022 20:48:03 +0200 > > > > > > To reproduce this regression, please invoke Emacs with: > > > > $ emacs -Q > > > > and then evaluate the following form: > > > > (let ((width 20)) > > (= width (let* ((height (line-pixel-height)) > > (data (with-temp-buffer > > (insert (format "P1\n%s %s\n" width height)) > > (dotimes (_ height) > > (insert (make-string width ?1) "\n")) > > (buffer-string)))) > > (insert " ") > > (let ((from (point))) > > (insert-image `(image :type pbm :data ,data :ascent center) "t") > > (car (window-text-pixel-size nil from (point))))))) > > > > The expected result, obtained for example in Emacs 26.1 and 27.1, is: t. > > > > Whereas with Emacs 28.1, evaluating the form unexpectedly yields: nil. > > Thanks, should be fixed now on the release branch and on master. No further comments for 2 weeks, so I'm boldly marking this bug done.