From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 12 18:02:25 2023 Received: (at submit) by debbugs.gnu.org; 12 Sep 2023 22:02:25 +0000 Received: from localhost ([127.0.0.1]:60226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgBSj-0007Mo-0z for submit@debbugs.gnu.org; Tue, 12 Sep 2023 18:02:25 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgBSg-0007Ma-RC for submit@debbugs.gnu.org; Tue, 12 Sep 2023 18:02:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgBSU-0003Ow-8t for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 18:02:11 -0400 Received: from [78.47.144.35] (helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgBSQ-0003l6-Jm for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 18:02:10 -0400 Received: from mts-Mac-mini.local (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 57DF49C751 for ; Wed, 13 Sep 2023 00:02:03 +0200 (CEST) Received: by mts-Mac-mini.local (Postfix, from userid 501) id 8A35E28ECC6E; Wed, 13 Sep 2023 00:09:35 +0200 (CEST) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 30.0.50; window-text-pixel-size sometimes fails to report accurate pixel-width Date: Wed, 13 Sep 2023 00:09:35 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 78.47.144.35 (failed) Received-SPF: none client-ip=78.47.144.35; envelope-from=triska@metalevel.at; helo=metalevel.at X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The following slight variation of the previously filed issue #54862 also yields a wrong result of window-text-pixel-size. To reproduce the issue, 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 "\n") (insert-image `(image :type pbm :data ,"P1\n1 10\n1111111111" :ascent center) "t") (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, is: t. With Emacs 30.0.50, I instead unexpectedly get: nil. If possible, could you please restore the previous behaviour? Thank you and all the best, Markus In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.2.0, X toolkit, cairo version 1.17.6, Xaw scroll bars) of 2023-09-11 built on mac Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Mac OS X 10.14.2 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --with-sqlite3 --with-webp --infodir /opt/local/share/info/emacs --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft --with-native-compilation=aot --with-tree-sitter 'CFLAGS=-pipe -Os -Wno-attributes -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-rpath /opt/local/lib/gcc12 -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64'' Configured features: ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM LUCID ZLIB From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 05:54:21 2023 Received: (at 65899) by debbugs.gnu.org; 14 Sep 2023 09:54:21 +0000 Received: from localhost ([127.0.0.1]:37684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgj3F-0003JM-53 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 05:54:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgj3C-0003J8-7I for 65899@debbugs.gnu.org; Thu, 14 Sep 2023 05:54:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgj30-0003Hy-9M; Thu, 14 Sep 2023 05:54:06 -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=fOeSdCBc3Rbb9mmDL/oev6JzIIZnUFtS7yfT1I5Xfqs=; b=L/hlQb/bUIlo nkSbjT4iC2/tVIOXgATE/+tAsCLP1CWDuGEuzeQzf/G0cmtxUJCZnXn0C1gYfhviNURxRHHIx21zJ U87H2Wx37IvnCCPWuhrc3i/Nclw9GuHqOhYM4e3BATYOV3uunNp9YNcLP/1e0/8DBQ20s3VrR2y78 EfsTxbOKnUFs3CdfxckahpoOSH0IPJqOBbGyUaNAwVnKMHYS1TBjJnd2BxXQj3UezKHNZ+6wP4Qxe 3SvSaKtp+iOzb31vvOOVH4/p5UMTZPRf8JzH0meXt8pntnwFIxtQscRqqrlT3ccjoSl9zi3cMc4fO 6SyFoPDHOzROhc+saUJ8iw==; Date: Thu, 14 Sep 2023 12:53:55 +0300 Message-Id: <83zg1pkrm4.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-Reply-To: (message from Markus Triska on Wed, 13 Sep 2023 00:09:35 +0200) Subject: Re: bug#65899: 30.0.50; window-text-pixel-size sometimes fails to report accurate pixel-width References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65899 Cc: 65899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Markus Triska > Date: Wed, 13 Sep 2023 00:09:35 +0200 > > > The following slight variation of the previously filed issue #54862 also > yields a wrong result of window-text-pixel-size. > > To reproduce the issue, 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 "\n") > (insert-image `(image :type pbm > :data ,"P1\n1 10\n1111111111" > :ascent center) "t") > (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, is: t. > > With Emacs 30.0.50, I instead unexpectedly get: nil. Thanks, should be fixed now on the emacs-29 release branch. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 09:01:11 2023 Received: (at control) by debbugs.gnu.org; 14 Sep 2023 13:01:11 +0000 Received: from localhost ([127.0.0.1]:37942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgly3-0002Pr-6Q for submit@debbugs.gnu.org; Thu, 14 Sep 2023 09:01:11 -0400 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:58591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qglxx-0002PB-6T for control@debbugs.gnu.org; Thu, 14 Sep 2023 09:01:09 -0400 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2bceca8a41aso14738951fa.0 for ; Thu, 14 Sep 2023 06:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694696453; x=1695301253; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=RYzi/NJrHPmvLc7MlIWKyxff1bukHfb31A/uO5YHLGw=; b=Ezur24K8TMafu8kTB/R1zhRS+rZIToWX70yP8qwIfPJe9FG7gYs4b260YfVtWzkP4A LuGvwxIuJOm6U2y1VgoQuQerAuOhQtqWl/+8rudu13viamka8UQQ7894gAJVhzb+WOcd 4ANcRUxe27JEsWI6Yh7Dv8mhAYOnubtlp7WtLRpGfj4g7HnsmN/749X2cLJjK6Y36RAi KjIuFLnfgojyOkyPCDFG4ypMucwaxivnEmTbqwg34Eeg2j8/xXs45Onz84cMUHUus7uB UApftMFubQH/T5Pb0SdpY7g//flyjsLi6+x6zIgq5yt6S/Bp/pkY13ZFqULIwWuODixi CNEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694696453; x=1695301253; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RYzi/NJrHPmvLc7MlIWKyxff1bukHfb31A/uO5YHLGw=; b=aJqsbNG9i6xvPFuyolGmITkqDYZFugcfFmHo1kGyGmOscNcsjGSUtSlAdWmSXhBiI7 ociMXcN05uiIXZU1cml4bxoFh/L+rYyaDIo1mbpOMJZ6dcJB1/G5AtkUue/hM29XPJSu 3/bF1A/rYp1UWQ4kPMlwsTmjibrn0i2lUjbPVItGip5jkPfmlI0FqIDNDnOcDL6tFGEs X6ziCe18FkmkGNuNySVFZ1/Xllgrf2jE+HtWsNIpoQ+tLO8spXR3xRR7odyXCZpgnjjo hA334jP4JXP3XaxPhL/fsftJBYar8wJwKmknfRHKR9FpTchKV8B4MVHMlTQu1n0/4ewu rQJA== X-Gm-Message-State: AOJu0YyuwG3YfH1dUUAZ9X0/L4cm/7Yc6FehksgqePfYelGo/p5tsg+q W/IJH5mdbG6LVzk5fw49B35XRCGd3BhWTuBz4K+Fub7W X-Google-Smtp-Source: AGHT+IH9wb33kwu7q9ZwUM8i3ntIgjHG7SWsbF1vGaBKttpIVCx9yP+0rIPocex5DzA+4LZqZrtk8bmR6amgxAi5khk= X-Received: by 2002:a2e:9201:0:b0:2bc:d43c:8607 with SMTP id k1-20020a2e9201000000b002bcd43c8607mr4777619ljg.14.1694696452855; Thu, 14 Sep 2023 06:00:52 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 14 Sep 2023 06:00:52 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 14 Sep 2023 06:00:52 -0700 Message-ID: Subject: control message for bug #65899 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) fixed 65899 29.2 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 14:27:25 2023 Received: (at 65899) by debbugs.gnu.org; 14 Sep 2023 18:27:25 +0000 Received: from localhost ([127.0.0.1]:41128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgr3l-0003bG-Fv for submit@debbugs.gnu.org; Thu, 14 Sep 2023 14:27:25 -0400 Received: from [78.47.144.35] (port=36132 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgr3j-0003b6-Dk for 65899@debbugs.gnu.org; Thu, 14 Sep 2023 14:27:24 -0400 Received: by metalevel.at (Postfix, from userid 1000) id CBBEE9C761; Thu, 14 Sep 2023 20:27:15 +0200 (CEST) From: Markus Triska To: Eli Zaretskii Subject: Re: bug#65899: 30.0.50; window-text-pixel-size sometimes fails to report accurate pixel-width References: <83zg1pkrm4.fsf@gnu.org> Date: Thu, 14 Sep 2023 20:27:15 +0200 In-Reply-To: <83zg1pkrm4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Sep 2023 12:53:55 +0300") Message-ID: <87y1h86264.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: > Thanks, should be fixed now on the emacs-29 release branch. Yes, it works nicely now, thank you a lot! Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 65899 Cc: 65899@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Eli Zaretskii writes: > Thanks, should be fixed now on the emacs-29 release branch. Yes, it works nicely now, thank you a lot! All the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 15 02:13:52 2023 Received: (at 65899-done) by debbugs.gnu.org; 15 Sep 2023 06:13:52 +0000 Received: from localhost ([127.0.0.1]:41853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh25P-0004q9-W6 for submit@debbugs.gnu.org; Fri, 15 Sep 2023 02:13:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh25D-0004pn-VT for 65899-done@debbugs.gnu.org; Fri, 15 Sep 2023 02:13:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qh251-0001ME-88; Fri, 15 Sep 2023 02:13:27 -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=/ztHM2O2K3ZQNdug6u1prB9Ez7Bp1ePRUvLL6QQvNTI=; b=bU+tTxVmFGeU ISr1StdrjzciDzvo96fzCd43uuGv1cXF4UaDLa9W6DLGUoimOK2qeyn+CO5aryVxbPGAcmuNVR83H OgMggjVkCC/BFz1SLpFgpjfUiXZcIR0KJWgs/vpscPi0VuRSy9AtFyHKTXHHFD5NgOIQ1c29Kb/RM cFtGw43wgxz2cRbZEllINraIVDP9w2r3QyWLY+rqoK1Vq07odGp+fR2LkinNcCOeA2XFQ0qPsvTC2 PbUX3fBrTsZLK1qC9QXs4a6UlgnesCWNJxRidUHHC3p8TSqtPNEVgv1bAJRwCkbvN97aWbYDm10OV p+Zg839c4kOZERgggtghPg==; Date: Fri, 15 Sep 2023 09:13:19 +0300 Message-Id: <837cosklq8.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-Reply-To: <87y1h86264.fsf@metalevel.at> (message from Markus Triska on Thu, 14 Sep 2023 20:27:15 +0200) Subject: Re: bug#65899: 30.0.50; window-text-pixel-size sometimes fails to report accurate pixel-width References: <83zg1pkrm4.fsf@gnu.org> <87y1h86264.fsf@metalevel.at> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65899-done Cc: 65899-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Markus Triska > Cc: 65899@debbugs.gnu.org > Date: Thu, 14 Sep 2023 20:27:15 +0200 > > Eli Zaretskii writes: > > > Thanks, should be fixed now on the emacs-29 release branch. > > Yes, it works nicely now, thank you a lot! Thanks for testing, I'm therefore closing this bug. From unknown Sat Jun 21 05:18:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Oct 2023 11:24:20 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator