From unknown Sun Jun 22 11:43:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 15:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 68893@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17068880105547 (code B ref -1); Fri, 02 Feb 2024 15:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Feb 2024 15:33:30 +0000 Received: from localhost ([127.0.0.1]:45431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVvXm-0001RN-28 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 10:33:30 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVvXj-0001R7-V6 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 10:33:28 -0500 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 1rVvXS-0004BD-Ft for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 10:33:10 -0500 Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVvXN-0000KV-8L for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 10:33:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1706887981; x=1707492781; i=stephen.berman@gmx.net; bh=JG+VSqtfheo/jDEdIwkbQcxCuNq0h1vqxy9G2FK7V58=; h=X-UI-Sender-Class:From:To:Subject:Date; b=Qj3qbC6gfsVwwd6nk7TWzay9L8khYxs7SVofwGuOIC3nC+RUra3XWxcqb2062mOO vE0Jf2wUDQWkqn6pxivfUcmlqUFjxl4X9qntEmehjHqTSdHeQHX12li3XKlPvk1uP 0IMG2jHgUciLHQDkrQxWma3BnqWzhUx2R4q2GTQXPyq5J19C+ahziAXHZ10HFJVRn px5BcbLZP94A6q0IvYVj+Lj88OdemwhWVJ/6sSA6V1dIATXz7Zp+kiZhCU5uOafci nvm02U+2XXWBSeKONt8u6nFjjbbjhNWUKy7fxio4tFrMQ5bm7DgrvcqongD9M7yJK /HCcfOoyeYOralRpOQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfs2 ([94.134.95.164]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mzhj9-1r9sPk1mPB-00vgC6 for ; Fri, 02 Feb 2024 16:33:01 +0100 From: Stephen Berman Date: Fri, 02 Feb 2024 16:33:00 +0100 Message-ID: <875xz6285v.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:6IWnjaLFIbcknNI86vKpp3Mu8FMUIWVegwVbFeOyzOwFzNJRwNa 4wUeMUzlsIckbepwbfHVREAw6g314o6igxb/itvist+c6Ff8mR7hf63hycx0PErpI/PVATU EQsrqsIP3lIfNwmSxwYOJLBku0EsQQMfD31e5ryVE3yGwEVVqaa8IiQQdy3itacHgbwgt69 Bn42bCP3Lw2mZ5g/AvMQA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9z8Rz9I9eLQ=;OfTWicASgs66NUU2iPLf7PMzfD7 j90DT6epsbx209rWDOo0ycBvsioIOClwMxcq/gj8ZbZ8EZdaL5/9a1yFXpXbSwaQmo6kXeX4u 76xrmw7zt2BDOAW5b/cNW3Ir+leMWaZG2zn+1h2z/KBmYcxYq7BPE95slmWIVQ/WMPjxkxFEY Nl44E7wav25WnzNdITB3l2aY/PhMoDhRwLWfFGzWlbkElOlcfnc75S2xKHsji16Tq4T1Or3BX AO/hQWfxFRm5FB/Us/pI/leJzVsiZmjX/6o16FM8DZVyNrEVycWJt4I0/olw9pk3E6S8R7ZA0 zl8hS4BfBNNjz1/ONxLvW1jobRSO0DslnJ21hppiwOVleWwg04R/pcfMwrWSgHzjfa/jKOS/y 1dLPy+rENTJrlPZnTwW/B8GbzuqLi4dlZJHjwac/IsGIm12ZIvy78Z3jrbUnGkYMMcQIM+gCD pGPd2+KWDNxZZaRTSBr6CneuXw0kHf++Tv40UCA4k6eAItMb8tAFNBP5VJxzT8HFe4r1hDTM7 aR2YOqKh8o7SI8Zae2C/za8Nmr5wXNGrhRcJ0+3IVvknpCZsPGdO7ykFP6rQXTw2dogm1DBIi I4r3othqQB2duZ3EVz73ThwQ1jC+nBx/1ztHXCoJRmcmoPjnGDDVtu9bHBmLhI7wPBznik29/ ulIHBlEsKlI8YmgOi17CeyHZKsKt8Jf1m1gx5BcjG2eoOSd1KfsvfurxYOto2/+rPPU1NbGkw Pd97UGYGBKbfvSgqh43b5qGd+lsRrAt2e78eSZ10yTfCdFmF/SFTKcS+ppzaBtczAs4gHzLhd p5gctIjMmpAYdIURSQwWvUCbjWZC8t0TP63YCMXokLuZE= Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) 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 (-) When I type `t' (gnus-summary-toggle-header) on many (but not all) articles in the Gnus Summary buffer, I get an error in pixel-fill-region that the indentation is wider than the fill width. I can reproduce the error as follows: 0. emacs -Q 1. Enable debug-on-error. 2. M-x gnus, type `y' at the prompt, then type `B RET news.gmane.io RET', then `C-s emacs.bugs RET RET 1 RET' to enter the Gnus Summary buffer showing the latest article in the gnu.emacs.bugs group. Then type `j' and at the prompt paste the following Message-ID (of an article that reliably induces the error) into the minibuffer: 3. Type `t'. This raises an error and produces the following backtrace: Debugger entered--Lisp error: (error "The indentation (640) is wider than t= he fill width (623)") error("The indentation (%s) is wider than the fill width (%s)" 640 623) pixel-fill-region(101 129 623) gnus-article-treat-fold-headers() gnus-treat-article(head) gnus-summary-toggle-header(nil) funcall-interactively(gnus-summary-toggle-header nil) command-execute(gnus-summary-toggle-header) I tried taking a closer look with Edebug. First, I cleared the backtrace and refreshed the article (by typing `g' in the Summary buffer), then instrumented pixel-fill-region for Edebug, typed `t' on the article again, and when execution stopped in pixel-fill-region I opened a new frame and switched to the Article buffer, which was now narrowed to the first header: Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail I then stepped through pixel-fill-region: the value of `start' is 2, and window-text-pixel-size returns `(8 . 17)'. I continued to the next header: From: Jo=C3=A3o T=C3=A1vora and stepped through pixel-fill-region again: `start' is now 60 and window-text-pixel-size again returns `(8 . 17)'. Repeating, I got the third header: Newsgroups: gmane.emacs.bugs and continued stepping: `start' is now 101, but now window-text-pixel-size returns `(634 . 34)' and this caused the error (I don't know why the car was 634 when edebugging but 640 without). I don't use gnus-summary-toggle-header very often so I don't know when this bug started, but it does not happen in emacs-29. When I carry out the above recipe and step through pixel-fill-region in emacs-29, I get the same values for the first two headers, but for the third header window-text-pixel-size returns `(0 . 17)', which does not cause an error, nor do the remaining headers. I saw that there are some differences between window_text_pixel_size in master and in emacs-29, so I tried running emacs under gdb, setting a breakpoint at window_text_pixel_size, and carrying out the recipe, but that's a fairly complex function and I couldn't see how to find out where the differing values are coming from. I don't know if it's relevant, but my build from master is with native compilation while my build from emacs-29 is not. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2024-02-02 built on strobelfs2 Repository revision: 72b1379f0795a5e2e9c57615c0b1d78c0b97cd1f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101009 System Description: Linux From Scratch r12.0-112 Configured using: 'configure -C --with-xwidgets 'CFLAGS=3D-Og -g3' PKG_CONFIG_PATH=3D/opt/qt5/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB From unknown Sun Jun 22 11:43:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 68893@debbugs.gnu.org Received: via spool by 68893-submit@debbugs.gnu.org id=B68893.17068891897777 (code B ref 68893); Fri, 02 Feb 2024 15:54:02 +0000 Received: (at 68893) by debbugs.gnu.org; 2 Feb 2024 15:53:09 +0000 Received: from localhost ([127.0.0.1]:45457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVvqn-00021L-C2 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 10:53:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVvqk-00020r-PY; Fri, 02 Feb 2024 10:53:07 -0500 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 1rVvqU-0008Bn-By; Fri, 02 Feb 2024 10:52:50 -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=UGR2BmRGJY5joDxIZHasm108voxjcCaCJZlvHw8W23c=; b=JQ4zTJy8Q6zu wHip+iNm500QCsvh94ph5ZETPb5E+RALkEammcuOGKQHkpQIjmVOtBqaKtcSU3/a8pLCzOXsW3FP/ O0pSfcZeGOcVOTFaH83CEh52csHcGcrzXVcF8XbI8fPAmFeyt0Rq3ebb8aZVt+CfDhyg0VhEOL9ck EbNl61wjsjbLJDBUFmFM/MWyEKJ3ozSwRJDNoz/KBmmaPk1F2Rb9Tdu50B1Q9HOx8/lOruGfpY1sA 5WdmYcazk0NTYhYZFN9Owr8ixdxqpQ9CQTgMVZVg9bDVNFGfJxi2CKdf/w15dtKJU5rtfsFHYdrVh ZBkO1nJpT9RJ89iZHU26aA==; Date: Fri, 02 Feb 2024 17:52:48 +0200 Message-Id: <86v87650dr.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <875xz6285v.fsf@gmx.net> (bug-gnu-emacs@gnu.org) References: <875xz6285v.fsf@gmx.net> X-Spam-Score: -2.3 (--) 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 (---) merge 68893 67791 thanks > Date: Fri, 02 Feb 2024 16:33:00 +0100 > From: Stephen Berman via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > When I type `t' (gnus-summary-toggle-header) on many (but not all) > articles in the Gnus Summary buffer, I get an error in pixel-fill-region > that the indentation is wider than the fill width. I can reproduce the > error as follows: > > 0. emacs -Q > 1. Enable debug-on-error. > 2. M-x gnus, type `y' at the prompt, then type `B RET news.gmane.io > RET', then `C-s emacs.bugs RET RET 1 RET' to enter the Gnus Summary > buffer showing the latest article in the gnu.emacs.bugs group. Then > type `j' and at the prompt paste the following Message-ID (of an > article that reliably induces the error) into the minibuffer: > > 3. Type `t'. This raises an error and produces the following backtrace: This is another duplicate of bug#67791. Please see there for the analysis and the proposed solutions. Thanks. From unknown Sun Jun 22 11:43:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 68893@debbugs.gnu.org Received: via spool by 68893-submit@debbugs.gnu.org id=B68893.17069025508873 (code B ref 68893); Fri, 02 Feb 2024 19:36:02 +0000 Received: (at 68893) by debbugs.gnu.org; 2 Feb 2024 19:35:50 +0000 Received: from localhost ([127.0.0.1]:45551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVzKH-0002J2-Ve for submit@debbugs.gnu.org; Fri, 02 Feb 2024 14:35:50 -0500 Received: from mout.gmx.net ([212.227.17.22]:60047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVzKF-0002In-Ju for 68893@debbugs.gnu.org; Fri, 02 Feb 2024 14:35:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1706902530; x=1707507330; i=stephen.berman@gmx.net; bh=5UvEtVKe9JizVou+yAiocacoTHbDfTrakXH23pPPv4E=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=Im9wlQG1ygsNF8sf01dmqasoUKHijBcSNeBMGLLtDhy+0nqFR62/FblR7i0HhQb2 DxkXFPdT42tAWANqWo5gdCRnW2xvDQ+qQNc3VdLSYV4JMBpND9atnAiZIRNySHEXA 0ii7b6x44SwydITxhwDg42TDvhGFgQIj0tMsfM+HKGwsvtax6b8d/SH+gHe2hHmrP 0ia/sJ4HnpbuJ4/gANzJpJ9H23q2b3BVoQwngmantSLcfjAIkN3go03eQtUC6waHL LsmQm2OAJrq+sxp1gEanTsqhXVSD7+Kxguhb2Zjd1+L1ot5IloT/Ss7tO8NmZOMbt 9Ac4rayT56SPpf936g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfs2 ([94.134.95.164]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Hdq-1rULhA27fG-002myF; Fri, 02 Feb 2024 20:35:30 +0100 From: Stephen Berman In-Reply-To: <86v87650dr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Feb 2024 17:52:48 +0200") References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> Date: Fri, 02 Feb 2024 20:35:29 +0100 Message-ID: <87y1c2zmke.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:WkrxPynSbqRPKRVo0041zUAs+NbMZAQg8RcvusQSpCXUxbpjGvz 7IlyX6Fk/+1fyIu7IAJv3G84nyPNiNApBT1UjLI2KYW2sVUAT8+k4c5ZtroOoirAqILJwUU HZO/UN8QjrdbJW3f+1QyDn2ny+ghF3QFBMqGuNUKCtqEgMo41M/lk/Oz9bek/6AD+C9szg5 lI80r/TQU/i8Nc0pxGxBQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:ySTdmSWwgc4=;B9FQ8v3P3WM040EWAltgPpOl1xO XXqvPm0r3eBtq8yEQ/tS2qJGroBbI6zqzKw4PbRv7D374i5338jnqH4Pojz3Z0IW0SUH7qn+3 x9oz+jYpCFV/3nmGW+gl8V0vdW+hnbEY6/LUoy3CEhOTjdPs3TpT7FZpFDoCoyrwbABegI8UX iZ+1CiQJFeYvjcQqhCGHtS/o2FVbQ70cEUD5Hbvi6H94lhFcDBfVzYm7A+WiohPfVUH/AdXe+ o9SyQNozULModIPiNp+PSLyohiZXIuo7+dRTtcCGpqjdi80ygPmdM6yewIuEI4xv4CADeOA3H ulQOS/2oFOYGfKw646ZvoCt2K0Zy+eEihoAQw8qFHXRSV1wb0r8YCvFJ+nmOORlxnX43+Qf5B EmciN5GN9tiAQIAzzLywsQ9Nim48EBPUsa8Ny4VqEYdeMFT35bXbzpYWF3JUvlBT3dSLBTExN RCg0IVARUo2AsnqLjJ9FXkmkBznP19GKWWFNTezNDAVz4cmXPuaEIWhGcxVuRlKMdfN5Etx9I WPadrRek5AUgOtQckQ0pCTIPQxWYRj/DS3EgyuUoD1M456/QR2rlBNO1dsPlsfk6OXKT4Prin Q4+v4B/YgEede9/4oNEemUG7Hprd7Z+RthUaVsRpOs3HhMBbRW1+vmLasVOXZJlmmT/yGbSBv afLC1oS87Lg2AMXGHhxEtbzzEqpBFlhaty71C9meujvwqD/07viKMTaGrJ53Nqzfx2x5B94Nh c2tWrs50VRe/rwL/DGrLtqy4bk7GStOdhz56xn1IVai50nQzl+KscXjG1IF384oywDsQNsJMR an+4GVh5P2AHfP+zo2ldxpRaVRxNsIy778I3gUMTmvp4s= X-Spam-Score: -0.7 (/) 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.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 02 Feb 2024 17:52:48 +0200 Eli Zaretskii wrote: > merge 68893 67791 > thanks > >> Date: Fri, 02 Feb 2024 16:33:00 +0100 >> From: Stephen Berman via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> When I type `t' (gnus-summary-toggle-header) on many (but not all) >> articles in the Gnus Summary buffer, I get an error in pixel-fill-regio= n >> that the indentation is wider than the fill width. I can reproduce the >> error as follows: >> >> 0. emacs -Q >> 1. Enable debug-on-error. >> 2. M-x gnus, type `y' at the prompt, then type `B RET news.gmane.io >> RET', then `C-s emacs.bugs RET RET 1 RET' to enter the Gnus Summary >> buffer showing the latest article in the gnu.emacs.bugs group. Then >> type `j' and at the prompt paste the following Message-ID (of an >> article that reliably induces the error) into the minibuffer: >> >> 3. Type `t'. This raises an error and produces the following backtrace= : > > This is another duplicate of bug#67791. Please see there for the > analysis and the proposed solutions. Ah, I actually had seen that report and also the recent other one that you merged with it, but unfortunately I didn't remember them when I encountered the issue myself today. Thanks for the pointer. And indeed, not only does Katsumi Yamaoka's patch to gnus-article-treat-fold-headers fix the problem for me too, but also your suggestion to apply the fix to pixel-fill-region instead, as in the following patch, works just as well: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Description: pixel-fill-region patch diff --git a/lisp/textmodes/pixel-fill.el b/lisp/textmodes/pixel-fill.el index 25c0b46cee9..dcd57acc2e5 100644 --- a/lisp/textmodes/pixel-fill.el +++ b/lisp/textmodes/pixel-fill.el @@ -73,7 +73,8 @@ pixel-fill-region If START isn't at the start of a line, the horizontal position of START, converted to pixel units, will be used as the indentation prefix on subsequent lines." - (save-excursion + (save-window-excursion + (set-window-buffer nil (current-buffer)) (goto-char start) (let ((indentation (car (window-text-pixel-size nil (line-beginning-position) --=-=-= Content-Type: text/plain (I also tried your suggestion to use buffer-text-pixel-size in place of window-text-pixel-size in pixel-fill-region, and while that prevented the error, it resulted in irregular and very large indentation of the continuations of overlong headers, and I didn't immediately see an easy way to avoid that.) Steve Berman --=-=-=-- From unknown Sun Jun 22 11:43:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 19:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman , No Wayman Cc: 68893@debbugs.gnu.org Received: via spool by 68893-submit@debbugs.gnu.org id=B68893.17069027539176 (code B ref 68893); Fri, 02 Feb 2024 19:40:01 +0000 Received: (at 68893) by debbugs.gnu.org; 2 Feb 2024 19:39:13 +0000 Received: from localhost ([127.0.0.1]:45556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVzNY-0002Nv-MH for submit@debbugs.gnu.org; Fri, 02 Feb 2024 14:39:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVzNW-0002Ni-T3 for 68893@debbugs.gnu.org; Fri, 02 Feb 2024 14:39:11 -0500 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 1rVzNG-0003KB-JI; Fri, 02 Feb 2024 14:38:54 -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=4fx5OHXXr2fj5qbXndAiyLzBy1+Qcve/AZ043gTwHJo=; b=caPzXmNDbF/S OrJp+/Olf3xxeq9yacEqHDokiTKE8X9IQr5hHA8OtlncjGlgQ49ZWdtp/XCc6INouehVlaP2xmOt5 rnDsokwY6Ze4w/ckz0oh4E2fZoqHWA4H5oYe8E+9uqB1NXdb14uNkUpEmojxL/LcrblzO46MQ3Uix wmlBOLqGE7HABdznLCdKRrp3rm3k6W1RKcygZuuuSwjQw6+yVRbx6dHv027B49MKXAqF/4O8wztsP FvxqxQB0WOV7lD5GoJ0YSnwSy19Q6J9LGOOY1CPIvq7agTN5vWOifGZcbX6EZTsAd0EvNwp2eoWMB 9vwI46afhti1IGFc3OyEKg==; Date: Fri, 02 Feb 2024 21:38:52 +0200 Message-Id: <86mssi4pwz.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87y1c2zmke.fsf@gmx.net> (message from Stephen Berman on Fri, 02 Feb 2024 20:35:29 +0100) References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> <87y1c2zmke.fsf@gmx.net> X-Spam-Score: -2.3 (--) 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: Stephen Berman > Cc: 68893@debbugs.gnu.org > Date: Fri, 02 Feb 2024 20:35:29 +0100 > > Ah, I actually had seen that report and also the recent other one that > you merged with it, but unfortunately I didn't remember them when I > encountered the issue myself today. Thanks for the pointer. And > indeed, not only does Katsumi Yamaoka's patch to > gnus-article-treat-fold-headers fix the problem for me too, but also > your suggestion to apply the fix to pixel-fill-region instead, as in the > following patch, works just as well: > > diff --git a/lisp/textmodes/pixel-fill.el b/lisp/textmodes/pixel-fill.el > index 25c0b46cee9..dcd57acc2e5 100644 > --- a/lisp/textmodes/pixel-fill.el > +++ b/lisp/textmodes/pixel-fill.el > @@ -73,7 +73,8 @@ pixel-fill-region > If START isn't at the start of a line, the horizontal position of > START, converted to pixel units, will be used as the indentation > prefix on subsequent lines." > - (save-excursion > + (save-window-excursion > + (set-window-buffer nil (current-buffer)) > (goto-char start) > (let ((indentation > (car (window-text-pixel-size nil (line-beginning-position) No Wayman, does the above fix the problem for you as well? Thanks. From unknown Sun Jun 22 11:43:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Resent-From: No Wayman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 21:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Stephen Berman , 68893@debbugs.gnu.org Received: via spool by 68893-submit@debbugs.gnu.org id=B68893.170690982320726 (code B ref 68893); Fri, 02 Feb 2024 21:38:01 +0000 Received: (at 68893) by debbugs.gnu.org; 2 Feb 2024 21:37:03 +0000 Received: from localhost ([127.0.0.1]:45609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rW1Db-0005OD-I1 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 16:37:03 -0500 Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]:49536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rW1Da-0005Nj-6E for 68893@debbugs.gnu.org; Fri, 02 Feb 2024 16:37:02 -0500 Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-4c00ceb9515so369659e0c.3 for <68893@debbugs.gnu.org>; Fri, 02 Feb 2024 13:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706909805; x=1707514605; darn=debbugs.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=B49dN/V5q0raTiBEClIqqdayt1cxJKZ0IjNi0hnmvyo=; b=eKtZLwaqDTGHTrH8fCN99f6v+Q45BbEqS0RtvUCGEf68/RWO+UVDfeuPcFvQxdMN6k IbMnIX87TcTGnKz3BEsy1TwMwRoVpLjxLGsdDrFeB5eqlGO0dk2v7JUkNcyKtlVwc6d6 2WEzU54PlJ13EbWvZJvuIe70juFg4qCvI8u2xVunqF6243wu9lgGSZPwW/M5btfAdglT lUOJJLDA6kCQSn0Uth+CUe235Vhg3P9jtZBFaM3koiW2d1qFyOlI8cG7G3q4OTnmNbxY A2v0sjiCgybhQwJjzAVTHNOK5WgfVEdtVDXcsGVQz8q63VzncgG8NmQP6oMwR5k691lT Qb6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706909805; x=1707514605; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B49dN/V5q0raTiBEClIqqdayt1cxJKZ0IjNi0hnmvyo=; b=usn62ZnU3AUr4WrAp4SfwgOKYNa4FzKpODb0PTyKA3fj0A8+skeagfW6h8JahY5UDC /1F2ubqQBGNongrj7hV2BDkimLOTdY9AhH5cL1ik2SeQGdkluArvQOuFZs9xn9rounJC Z8lGAmfXmaCp6NymITOtrrdciuzy7MHpjYeT8FbzT8+2RvzZ/1SNcnMnEU5rFi1sR+2T IBV0AHqvcAQo1QMITZicBr5v5Gfsw14uBdHJwWcF1N+4MN2OYwzmuWKQ7whABdsM0k7B Q5CoLHzF+fJ7qMaJoZI6jntBpjfO9/oLNBbU2cSX3diK9lDhwDg6uVHzC+yoNa/LbAui 4xoA== X-Gm-Message-State: AOJu0YxKDMfGNduzeWGADYQPaGrzThbZbnQZKbECjF4QS86TMcjLhnz6 1nEQp2Id/mHs65+vbbxfuin37HqSq4cumY+oIaNa3WNp3mMopunz7XsWNvlhVHo= X-Google-Smtp-Source: AGHT+IHSUK/LquqhVCGYpHVstJ2vh2q21z9jGO1S/KZmKMi7a5aEVM1Wu6LnPZD3sbTPBv/apWU7Lg== X-Received: by 2002:a05:6122:2881:b0:4bd:29f7:53c4 with SMTP id fl1-20020a056122288100b004bd29f753c4mr6457948vkb.1.1706909805464; Fri, 02 Feb 2024 13:36:45 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVIg7utpW9CR7lpoPenNcsZoHxy0Ybyy5+C10Ela76w89N94shBGtomsw2R0Ksrgy5pt2j4uPPpCAO8qio8p6r+W1+kwNE= Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id lu1-20020a0562145a0100b006836a373c85sm1159286qvb.45.2024.02.02.13.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 13:36:45 -0800 (PST) From: No Wayman In-Reply-To: <86mssi4pwz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Feb 2024 21:38:52 +0200") References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> <87y1c2zmke.fsf@gmx.net> <86mssi4pwz.fsf@gnu.org> User-Agent: mu4e 1.11.27; emacs 30.0.50 Date: Fri, 02 Feb 2024 16:37:46 -0500 Message-ID: <874jeqzgwl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.0 (/) 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 (-) Eli Zaretskii writes: > No Wayman, does the above fix the problem for you as well? > > Thanks. Yes. That also fixes the issue. From unknown Sun Jun 22 11:43:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stephen Berman Subject: bug#68893: closed (Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus) Message-ID: References: <86bk8x52ud.fsf@gnu.org> <875xz6285v.fsf@gmx.net> X-Gnu-PR-Message: they-closed 68893 X-Gnu-PR-Package: emacs Reply-To: 68893@debbugs.gnu.org Date: Sat, 03 Feb 2024 09:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1706951582-6915-1" This is a multi-part message in MIME format... ------------=_1706951582-6915-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #68893: 30.0.50; pixel-fill-region errors when folding message headers in G= nus which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 68893@debbugs.gnu.org. --=20 68893: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68893 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1706951582-6915-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 68893-done) by debbugs.gnu.org; 3 Feb 2024 09:12:18 +0000 Received: from localhost ([127.0.0.1]:45848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWC4Q-0001mb-5v for submit@debbugs.gnu.org; Sat, 03 Feb 2024 04:12:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWC4N-0001mO-R9 for 68893-done@debbugs.gnu.org; Sat, 03 Feb 2024 04:12:16 -0500 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 1rWC46-0000bv-HO; Sat, 03 Feb 2024 04:11:58 -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=RlrqXmXmRrLO5cqT8/eVnSKbrGlvkmLtaWpqyKcR/J8=; b=Uppc4Ycr7IlV RNefBBed5Q2fxfFm+soX0Tk2XKLQi5WrkEroR09DTqSuTZZ3eYMWyRHMdNrp3qRug53XGpus7HSuL jVMfMmNjPsECSRO8R1Jycm8PFNpey08ac7/kK5AKLySOo/CUDozEBmrE6dy7g4vg10ZNyxjI32ejE tpKF2sErvVP9zfkDrm1u3fLgtjRpBGrssiCxXUfD4eRdlyI8vGPWWdQLPRBTlKXqLedwuy76ojFjD zAfWKR1JQDjYpy7wpDgNAYKSLZ8ivu6YhLgrW4OPivWpPP+t+LtC0zjC4oDKyEFEdJxdLtdthN8dZ K715+SSWJYyczPoBMXdGKg==; Date: Sat, 03 Feb 2024 11:11:54 +0200 Message-Id: <86bk8x52ud.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <874jeqzgwl.fsf@gmail.com> (message from No Wayman on Fri, 02 Feb 2024 16:37:46 -0500) Subject: Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> <87y1c2zmke.fsf@gmx.net> <86mssi4pwz.fsf@gnu.org> <874jeqzgwl.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68893-done Cc: stephen.berman@gmx.net, 68893-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: No Wayman > Cc: Stephen Berman , 68893@debbugs.gnu.org > Date: Fri, 02 Feb 2024 16:37:46 -0500 > > Eli Zaretskii writes: > > > No Wayman, does the above fix the problem for you as well? > > > > Thanks. > > Yes. That also fixes the issue. Thanks, I installed on the emacs-29 branch a somewhat different patch, which uses save-window-excursion _and_ save-excursion, because we also need to preserve point position in the current buffer. Let me know if the change causes any further problem. For now, I'm closing this bug. ------------=_1706951582-6915-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Feb 2024 15:33:30 +0000 Received: from localhost ([127.0.0.1]:45431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVvXm-0001RN-28 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 10:33:30 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVvXj-0001R7-V6 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 10:33:28 -0500 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 1rVvXS-0004BD-Ft for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 10:33:10 -0500 Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVvXN-0000KV-8L for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 10:33:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1706887981; x=1707492781; i=stephen.berman@gmx.net; bh=JG+VSqtfheo/jDEdIwkbQcxCuNq0h1vqxy9G2FK7V58=; h=X-UI-Sender-Class:From:To:Subject:Date; b=Qj3qbC6gfsVwwd6nk7TWzay9L8khYxs7SVofwGuOIC3nC+RUra3XWxcqb2062mOO vE0Jf2wUDQWkqn6pxivfUcmlqUFjxl4X9qntEmehjHqTSdHeQHX12li3XKlPvk1uP 0IMG2jHgUciLHQDkrQxWma3BnqWzhUx2R4q2GTQXPyq5J19C+ahziAXHZ10HFJVRn px5BcbLZP94A6q0IvYVj+Lj88OdemwhWVJ/6sSA6V1dIATXz7Zp+kiZhCU5uOafci nvm02U+2XXWBSeKONt8u6nFjjbbjhNWUKy7fxio4tFrMQ5bm7DgrvcqongD9M7yJK /HCcfOoyeYOralRpOQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfs2 ([94.134.95.164]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mzhj9-1r9sPk1mPB-00vgC6 for ; Fri, 02 Feb 2024 16:33:01 +0100 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 30.0.50; pixel-fill-region errors when folding message headers in Gnus X-Debbugs-Cc: Date: Fri, 02 Feb 2024 16:33:00 +0100 Message-ID: <875xz6285v.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:6IWnjaLFIbcknNI86vKpp3Mu8FMUIWVegwVbFeOyzOwFzNJRwNa 4wUeMUzlsIckbepwbfHVREAw6g314o6igxb/itvist+c6Ff8mR7hf63hycx0PErpI/PVATU EQsrqsIP3lIfNwmSxwYOJLBku0EsQQMfD31e5ryVE3yGwEVVqaa8IiQQdy3itacHgbwgt69 Bn42bCP3Lw2mZ5g/AvMQA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9z8Rz9I9eLQ=;OfTWicASgs66NUU2iPLf7PMzfD7 j90DT6epsbx209rWDOo0ycBvsioIOClwMxcq/gj8ZbZ8EZdaL5/9a1yFXpXbSwaQmo6kXeX4u 76xrmw7zt2BDOAW5b/cNW3Ir+leMWaZG2zn+1h2z/KBmYcxYq7BPE95slmWIVQ/WMPjxkxFEY Nl44E7wav25WnzNdITB3l2aY/PhMoDhRwLWfFGzWlbkElOlcfnc75S2xKHsji16Tq4T1Or3BX AO/hQWfxFRm5FB/Us/pI/leJzVsiZmjX/6o16FM8DZVyNrEVycWJt4I0/olw9pk3E6S8R7ZA0 zl8hS4BfBNNjz1/ONxLvW1jobRSO0DslnJ21hppiwOVleWwg04R/pcfMwrWSgHzjfa/jKOS/y 1dLPy+rENTJrlPZnTwW/B8GbzuqLi4dlZJHjwac/IsGIm12ZIvy78Z3jrbUnGkYMMcQIM+gCD pGPd2+KWDNxZZaRTSBr6CneuXw0kHf++Tv40UCA4k6eAItMb8tAFNBP5VJxzT8HFe4r1hDTM7 aR2YOqKh8o7SI8Zae2C/za8Nmr5wXNGrhRcJ0+3IVvknpCZsPGdO7ykFP6rQXTw2dogm1DBIi I4r3othqQB2duZ3EVz73ThwQ1jC+nBx/1ztHXCoJRmcmoPjnGDDVtu9bHBmLhI7wPBznik29/ ulIHBlEsKlI8YmgOi17CeyHZKsKt8Jf1m1gx5BcjG2eoOSd1KfsvfurxYOto2/+rPPU1NbGkw Pd97UGYGBKbfvSgqh43b5qGd+lsRrAt2e78eSZ10yTfCdFmF/SFTKcS+ppzaBtczAs4gHzLhd p5gctIjMmpAYdIURSQwWvUCbjWZC8t0TP63YCMXokLuZE= Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham 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 (-) When I type `t' (gnus-summary-toggle-header) on many (but not all) articles in the Gnus Summary buffer, I get an error in pixel-fill-region that the indentation is wider than the fill width. I can reproduce the error as follows: 0. emacs -Q 1. Enable debug-on-error. 2. M-x gnus, type `y' at the prompt, then type `B RET news.gmane.io RET', then `C-s emacs.bugs RET RET 1 RET' to enter the Gnus Summary buffer showing the latest article in the gnu.emacs.bugs group. Then type `j' and at the prompt paste the following Message-ID (of an article that reliably induces the error) into the minibuffer: 3. Type `t'. This raises an error and produces the following backtrace: Debugger entered--Lisp error: (error "The indentation (640) is wider than t= he fill width (623)") error("The indentation (%s) is wider than the fill width (%s)" 640 623) pixel-fill-region(101 129 623) gnus-article-treat-fold-headers() gnus-treat-article(head) gnus-summary-toggle-header(nil) funcall-interactively(gnus-summary-toggle-header nil) command-execute(gnus-summary-toggle-header) I tried taking a closer look with Edebug. First, I cleared the backtrace and refreshed the article (by typing `g' in the Summary buffer), then instrumented pixel-fill-region for Edebug, typed `t' on the article again, and when execution stopped in pixel-fill-region I opened a new frame and switched to the Article buffer, which was now narrowed to the first header: Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail I then stepped through pixel-fill-region: the value of `start' is 2, and window-text-pixel-size returns `(8 . 17)'. I continued to the next header: From: Jo=C3=A3o T=C3=A1vora and stepped through pixel-fill-region again: `start' is now 60 and window-text-pixel-size again returns `(8 . 17)'. Repeating, I got the third header: Newsgroups: gmane.emacs.bugs and continued stepping: `start' is now 101, but now window-text-pixel-size returns `(634 . 34)' and this caused the error (I don't know why the car was 634 when edebugging but 640 without). I don't use gnus-summary-toggle-header very often so I don't know when this bug started, but it does not happen in emacs-29. When I carry out the above recipe and step through pixel-fill-region in emacs-29, I get the same values for the first two headers, but for the third header window-text-pixel-size returns `(0 . 17)', which does not cause an error, nor do the remaining headers. I saw that there are some differences between window_text_pixel_size in master and in emacs-29, so I tried running emacs under gdb, setting a breakpoint at window_text_pixel_size, and carrying out the recipe, but that's a fairly complex function and I couldn't see how to find out where the differing values are coming from. I don't know if it's relevant, but my build from master is with native compilation while my build from emacs-29 is not. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2024-02-02 built on strobelfs2 Repository revision: 72b1379f0795a5e2e9c57615c0b1d78c0b97cd1f Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101009 System Description: Linux From Scratch r12.0-112 Configured using: 'configure -C --with-xwidgets 'CFLAGS=3D-Og -g3' PKG_CONFIG_PATH=3D/opt/qt5/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB ------------=_1706951582-6915-1-- From unknown Sun Jun 22 11:43:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Katsumi Yamaoka Subject: bug#67791: closed (Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus) Message-ID: References: <86bk8x52ud.fsf@gnu.org> X-Gnu-PR-Message: they-closed 67791 X-Gnu-PR-Package: emacs Reply-To: 67791@debbugs.gnu.org Date: Sat, 03 Feb 2024 09:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1706951582-6915-3" This is a multi-part message in MIME format... ------------=_1706951582-6915-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #68893: 30.0.50; `t' command on Gnus summary buffer sometimes causes an err= or which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 67791@debbugs.gnu.org. --=20 68893: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68893 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1706951582-6915-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 68893-done) by debbugs.gnu.org; 3 Feb 2024 09:12:18 +0000 Received: from localhost ([127.0.0.1]:45848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWC4Q-0001mb-5v for submit@debbugs.gnu.org; Sat, 03 Feb 2024 04:12:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWC4N-0001mO-R9 for 68893-done@debbugs.gnu.org; Sat, 03 Feb 2024 04:12:16 -0500 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 1rWC46-0000bv-HO; Sat, 03 Feb 2024 04:11:58 -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=RlrqXmXmRrLO5cqT8/eVnSKbrGlvkmLtaWpqyKcR/J8=; b=Uppc4Ycr7IlV RNefBBed5Q2fxfFm+soX0Tk2XKLQi5WrkEroR09DTqSuTZZ3eYMWyRHMdNrp3qRug53XGpus7HSuL jVMfMmNjPsECSRO8R1Jycm8PFNpey08ac7/kK5AKLySOo/CUDozEBmrE6dy7g4vg10ZNyxjI32ejE tpKF2sErvVP9zfkDrm1u3fLgtjRpBGrssiCxXUfD4eRdlyI8vGPWWdQLPRBTlKXqLedwuy76ojFjD zAfWKR1JQDjYpy7wpDgNAYKSLZ8ivu6YhLgrW4OPivWpPP+t+LtC0zjC4oDKyEFEdJxdLtdthN8dZ K715+SSWJYyczPoBMXdGKg==; Date: Sat, 03 Feb 2024 11:11:54 +0200 Message-Id: <86bk8x52ud.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <874jeqzgwl.fsf@gmail.com> (message from No Wayman on Fri, 02 Feb 2024 16:37:46 -0500) Subject: Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> <87y1c2zmke.fsf@gmx.net> <86mssi4pwz.fsf@gnu.org> <874jeqzgwl.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68893-done Cc: stephen.berman@gmx.net, 68893-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: No Wayman > Cc: Stephen Berman , 68893@debbugs.gnu.org > Date: Fri, 02 Feb 2024 16:37:46 -0500 > > Eli Zaretskii writes: > > > No Wayman, does the above fix the problem for you as well? > > > > Thanks. > > Yes. That also fixes the issue. Thanks, I installed on the emacs-29 branch a somewhat different patch, which uses save-window-excursion _and_ save-excursion, because we also need to preserve point position in the current buffer. Let me know if the change causes any further problem. For now, I'm closing this bug. ------------=_1706951582-6915-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Dec 2023 02:16:26 +0000 Received: from localhost ([127.0.0.1]:55053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCsJt-0005dX-HD for submit@debbugs.gnu.org; Mon, 11 Dec 2023 21:16:25 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCsJq-0005d4-GL for submit@debbugs.gnu.org; Mon, 11 Dec 2023 21:16:24 -0500 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 1rCsJW-0001is-45 for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2023 21:16:02 -0500 Received: from mail-pl1-f182.google.com ([209.85.214.182]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCsJU-0002Zc-6M for bug-gnu-emacs@gnu.org; Mon, 11 Dec 2023 21:16:01 -0500 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d053c45897so45303375ad.2 for ; Mon, 11 Dec 2023 18:15:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702347358; x=1702952158; h=mime-version:organization:subject:to:from:message-id:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mLUfUufMG5aBAVj0Gv8WFV+frZEGf/fWpvHRoujWuZM=; b=Kxa1BFcuZJ/FWrJct+rFMrPJ7kE+Ul23oOvzAiutVP4EBg4vc6Bn0CL6w0fm8D5Lck e6FnOQToD2M0XYDEvy4qMJoCW0XINJgLO/PmWKV/DbMCqzET9iP4egAQe96lH83SFdKO ruJFDQnE7wBDNbAWm/S/+ZwBA8k88iIo20euWdUTwh+fdMmiOt9AcerbgkJef2Ddd2VK 3EporpYnb1qV4SxKOhNRbZ7Q23oyOKuga1gEWHMJzXIChH4UeW/GxyizQnw7TP9EslQA CrMuMv8D3WvMrcDY7JXXLXhJ0C9zT2/OSXjef/SdCmIoRJfaRk0mYdJo3OaWCOt9z4Vg cwrQ== X-Gm-Message-State: AOJu0YzL4YsTdWwtkVrclIhgsQdUWftqKDPcwtFVvHnGxN7xJir5LfOH 35l1oAhV1Xq/0AGcRomVB50bZiXY+A== X-Google-Smtp-Source: AGHT+IGGr3Oj+gBkedw6gwGYNvBPfb3hoPRlN5tKMKYdZQfeg6Reo0Co2aj6h+wDDGU6VkSXDnXaiA== X-Received: by 2002:a17:902:fe82:b0:1cf:b12a:a9eb with SMTP id x2-20020a170902fe8200b001cfb12aa9ebmr4874803plm.19.1702347358167; Mon, 11 Dec 2023 18:15:58 -0800 (PST) Received: from localhost (157-205-200-190.cns.tayoreru.com. [157.205.200.190]) by smtp.gmail.com with ESMTPSA id o1-20020a170902d4c100b001cfcd4eca11sm7311574plg.114.2023.12.11.18.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 18:15:57 -0800 (PST) Date: Tue, 12 Dec 2023 11:15:54 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 30.0.50; `t' command on Gnus summary buffer sometimes causes an error Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Received-SPF: pass client-ip=209.85.214.182; envelope-from=katsumi.yamaoka@gmail.com; helo=mail-pl1-f182.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.5 (+) 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: Because the `gnus-article-treat-fold-headers' function does not work as expected. `t' command, i.e. `gnus-summary-toggle-header' is invoked on the Gnus summary buffer, that runs by default `gnus-artic [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (katsumi.yamaoka[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -0.0 T_SCC_BODY_TEXT_LINE No description available. 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: 0.5 (/) Because the `gnus-article-treat-fold-headers' function does not work as expected. `t' command, i.e. `gnus-summary-toggle-header' is invoked on the Gnus summary buffer, that runs by default `gnus-article-treat-fold-headers' by way of `gnus-treat-article'. It works on the article buffer and folds headers with the help of the pixel-fill functions. One of them, `pixel-fill-region' uses the built-in `window-text-pixel-size' function, that is required to run on the selected window in which there is the text to measure the pixel size (since `pixel-fill-region' passes nil to `window-text-pixel-size' as the 1st argument `WINDOW'). ,---- | (window-text-pixel-size &optional WINDOW FROM TO ...) | | Return the size of the text of WINDOW's buffer in pixels. | WINDOW must be a live window and defaults to the selected one. `---- Therefore, the window should be that of the article. However, in that situation the selected one is that of the summary, as mentioned above. Because of this, the `window-text-pixel-size' sometimes returns a funny value and it causes the error like this: Debugger entered--Lisp error: (error "The indentation (640) is wider than th... signal(error ("The indentation (640) is wider than the fill width (623)"))... error("The indentation (%s) is wider than the fill width (%s)" 640 623)... (progn (error "The indentation (%s) is wider than the fill width (%s)" ind... (if (> indentation pixel-width) (progn (error "The indentation (%s) is wid... (let ((indentation (car (window-text-pixel-size nil (line-beginning-positi... (save-excursion (goto-char start) (let ((indentation (car (window-text-pix... pixel-fill-region(101 181 623) [...] command-execute(gnus-summary-toggle-header) Another possible cause might be the recent change (33b6de7a) made in `window-text-pixel-size', because such an error doesn't look to cause in Emacs 29.1.90 (the function before the change might possibly have worked on the current buffer, not the selected window). Here is a quick hack: * lisp/gnus/gnus-art.el (gnus-article-treat-fold-headers): Make sure the article window is selected while running pixel-fill-region. --8<---------------cut here---------------start------------->8--- --- gnus-art.el~ 2023-12-10 23:22:23.410103300 +0000 +++ gnus-art.el 2023-12-12 02:11:11.364620000 +0000 @@ -2240,7 +2240,9 @@ (if (not (gnus--variable-pitch-p (get-text-property (point) 'face))) (mail-header-fold-field) (forward-char 1) - (pixel-fill-region (point) (point-max) (pixel-fill-width))) + (save-window-excursion + (set-window-buffer nil (current-buffer)) + (pixel-fill-region (point) (point-max) (pixel-fill-width)))) (goto-char (point-max)))))) (defun gnus-article-treat-suspicious-headers () --8<---------------cut here---------------end--------------->8--- In GNU Emacs 30.0.50 (build 1, x86_64-pc-cygwin, GTK+ Version 3.22.28, cairo version 1.17.4) of 2023-12-12 built on localhost Windowing system distributor 'The Cygwin/X Project', version 11.0.12101008 Configured using: 'configure 'CFLAGS=-O0 -g3' --verbose --infodir=/usr/local/info/emacs --with-x-toolkit=gtk3 --with-cairo-xcb --with-imagemagick --with-native-compilation=no' ------------=_1706951582-6915-3-- From unknown Sun Jun 22 11:43:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: No Wayman Subject: bug#68884: closed (Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus) Message-ID: References: <86bk8x52ud.fsf@gnu.org> <87v877gyp1.fsf@gmail.com> X-Gnu-PR-Message: they-closed 68884 X-Gnu-PR-Package: emacs Reply-To: 68884@debbugs.gnu.org Date: Sat, 03 Feb 2024 09:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1706951582-6915-5" This is a multi-part message in MIME format... ------------=_1706951582-6915-5 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #68893: 30.0.50; error in process filter: pixel-fill-region: The indentatio= n (947) is wider than the fill width (919) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 68884@debbugs.gnu.org. --=20 68893: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68893 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1706951582-6915-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 68893-done) by debbugs.gnu.org; 3 Feb 2024 09:12:18 +0000 Received: from localhost ([127.0.0.1]:45848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWC4Q-0001mb-5v for submit@debbugs.gnu.org; Sat, 03 Feb 2024 04:12:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWC4N-0001mO-R9 for 68893-done@debbugs.gnu.org; Sat, 03 Feb 2024 04:12:16 -0500 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 1rWC46-0000bv-HO; Sat, 03 Feb 2024 04:11:58 -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=RlrqXmXmRrLO5cqT8/eVnSKbrGlvkmLtaWpqyKcR/J8=; b=Uppc4Ycr7IlV RNefBBed5Q2fxfFm+soX0Tk2XKLQi5WrkEroR09DTqSuTZZ3eYMWyRHMdNrp3qRug53XGpus7HSuL jVMfMmNjPsECSRO8R1Jycm8PFNpey08ac7/kK5AKLySOo/CUDozEBmrE6dy7g4vg10ZNyxjI32ejE tpKF2sErvVP9zfkDrm1u3fLgtjRpBGrssiCxXUfD4eRdlyI8vGPWWdQLPRBTlKXqLedwuy76ojFjD zAfWKR1JQDjYpy7wpDgNAYKSLZ8ivu6YhLgrW4OPivWpPP+t+LtC0zjC4oDKyEFEdJxdLtdthN8dZ K715+SSWJYyczPoBMXdGKg==; Date: Sat, 03 Feb 2024 11:11:54 +0200 Message-Id: <86bk8x52ud.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <874jeqzgwl.fsf@gmail.com> (message from No Wayman on Fri, 02 Feb 2024 16:37:46 -0500) Subject: Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> <87y1c2zmke.fsf@gmx.net> <86mssi4pwz.fsf@gnu.org> <874jeqzgwl.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68893-done Cc: stephen.berman@gmx.net, 68893-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: No Wayman > Cc: Stephen Berman , 68893@debbugs.gnu.org > Date: Fri, 02 Feb 2024 16:37:46 -0500 > > Eli Zaretskii writes: > > > No Wayman, does the above fix the problem for you as well? > > > > Thanks. > > Yes. That also fixes the issue. Thanks, I installed on the emacs-29 branch a somewhat different patch, which uses save-window-excursion _and_ save-excursion, because we also need to preserve point position in the current buffer. Let me know if the change causes any further problem. For now, I'm closing this bug. ------------=_1706951582-6915-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Feb 2024 06:35:50 +0000 Received: from localhost ([127.0.0.1]:43478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVn9R-0008Jn-Ex for submit@debbugs.gnu.org; Fri, 02 Feb 2024 01:35:50 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVn9M-0008JU-4c for submit@debbugs.gnu.org; Fri, 02 Feb 2024 01:35:47 -0500 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 1rVn95-0001EP-MI for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 01:35:27 -0500 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVn8r-0006Ta-LR for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 01:35:26 -0500 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7838af983c1so133551985a.3 for ; Thu, 01 Feb 2024 22:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706855711; x=1707460511; darn=gnu.org; h=mime-version:message-id:date:user-agent:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=fB9jAt25YOenoLihkOtUtTxpQZ7cUxj10n84rG6rWik=; b=e8+ao6yK6mPpYBDlC9kLWv12ICSsmKCced/bOhMKo96aRBjeDtpGPTJPgaYNGx87SN s66gT+cLOEjxTBaKBsz3QYSnGGBP1qHE8Sj83jKAbjkE+w9eIKc6bCvAKywFix08cpmF cZLnr8UEqKE0Yq/guebiodOGwZHL1VG5vlcAPcPhlXGjkOfBadPsjq+A79bM/Nok8GYb +dsNja7I/QhE5fkJcQVNtR1/496h8BP3Jo4Ufgmi/RSuReelbG/cooKGVdQzcRpMoznt vk2fcL7o0oKErpfOwbwOUHc4o4cB7SRusa+fNTsnNHzsSU/u9hUTp0ffuTNPgPe94Xzz biDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706855711; x=1707460511; h=mime-version:message-id:date:user-agent:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fB9jAt25YOenoLihkOtUtTxpQZ7cUxj10n84rG6rWik=; b=F+h3p8hDigJou9Br2enLbWuCRJtsMs4wOI374ynPYSAcBRA/2LNHBzxLsDV9k57SZY iccM/e8/oNvZQy5uB8wYwBugQ/WuvhM5GdlVjmnatcZ9WWjqKn5pf69ie6j/Wm11RxsX FxPne5ERqTJ2XGjNUUK7ppvANLpLTSfpZnoZnsFc+eal+qKlzLlt1B4sC51e1c+MsrfT bn3L1jdcxFM9jw0jmclczj2WIdYnCsy6CZuO5qXhkbptPS6bppiHrRXCYQPvfN403Kaz AJzNBc7vN07FTvpAh/pCJc6uEKEQgjF83bXCl/cGRMV+cARIuGQ1gNhjSHpUaNZfG27t 1AGQ== X-Gm-Message-State: AOJu0YwSHPfQ9Z1pSUnTTXx4cutdGYmEiH0rUCqClWhthirYEz6UXWvD EvwY/Qm84KoH/qaYwW8XQQl4LehYqF4UHLUH1SfTNtQhXyfHqRzrKPiYtaKn X-Google-Smtp-Source: AGHT+IHzddr9b7Ehoz3CRBZ1PJurU3ZOEkE4rbWq6a/cTRVek9Hz3V0CeEeMARaiVhLFa1BrCYDQkg== X-Received: by 2002:a05:622a:84:b0:42b:ff38:775d with SMTP id o4-20020a05622a008400b0042bff38775dmr2632955qtw.58.1706855711098; Thu, 01 Feb 2024 22:35:11 -0800 (PST) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id cp3-20020a05622a420300b00429b97f01dcsm547666qtb.9.2024.02.01.22.35.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 22:35:10 -0800 (PST) From: No Wayman To: bug-gnu-emacs@gnu.org Subject: 30.0.50; error in process filter: pixel-fill-region: The indentation (947) is wider than the fill width (919) User-Agent: mu4e 1.11.27; emacs 30.0.50 X-Debbugs-Cc: Date: Fri, 02 Feb 2024 01:36:10 -0500 Message-ID: <87v877gyp1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x72a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) I've been seeing the following error when mu4e attempts to render views: error in process filter: pixel-fill-region: The indentation (947) is wider than the fill width (919) I reported it upstream to mu4e's maintainer who referred me here due to the fact that mu4e uses gnus to render email. However, I am unable to reproduce by using gnus alone to view the same messages. The error only occurs when the Emacs frame is <= one half the width of my laptop's 1920x1080 monitor. The error does not occur on Emacs 29.2. Git bisect points to the following commit: 33b6de7acec0536290939303855947c0c2af57d2 is the first bad commit commit 33b6de7acec0536290939303855947c0c2af57d2 Author: Eli Zaretskii Date: Sun Dec 3 18:29:09 2023 +0200 Improve 'window-text-pixel-size' when buffer includes images * src/xdisp.c (window_text_pixel_size): Fix computation of Y when IGNORE_LINE_AT_END is non-nil and there's a 'display' property at TO. Improve movement to beginning of screen line at start. Fix computation of Y when lines are truncated and a line begins with a 'display' property at TO. (produce_image_glyph): Don't crop image glyph when word-wrap is in effect. (Bug#67533) src/xdisp.c | 33 +++++++++++++++++++++++++++------ Here's a full backtrace from an errant attempt at displaying an email: Debugger entered--Lisp error: (error "The indentation (947) is wider than the fill width (919)") error("The indentation (%s) is wider than the fill width (%s)" 947 919) pixel-fill-region(145 193 919) gnus-article-treat-fold-headers() gnus-treat-article(head) gnus-display-mime(nil) (closure ((msg :path "/home/n/Documents/emails/iarchivedmywholelife-gmail/github/cur/1706283491.27109_1.laptop,U=6349:2,S" :size 8759 :list-post ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com")) :reply-to ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com" :name "progfolio/elpaca")) :cc ((:email "iarchivedmywholelife@gmail.com" :name "Nicholas Vollmer") (:email "comment@noreply.github.com" :name "Comment")) :changed (26035 53731 0) :date (26035 52304 0) :from ((:email "notifications@github.com" :name "drcxd")) :list "elpaca.progfolio.github.com" :message-id "progfolio/elpaca/issues/247/1912229603@github.com" :priority low :references ("progfolio/elpaca/issues/247@github.com") :subject "Re: [progfolio/elpaca] [Bug/Support]: Unable to find main elisp file for vertico (Issue #247)" :to ((:email "elpaca@noreply.github.com" :name "progfolio/elpaca")) :maildir "/iarchivedmywholelife-gmail/github" :flags (seen list personal) :docid 10667 :meta (:path "06:ff:z" :level 1 :date "n65b3cc50" :data-tstamp (0 0 0) :first-child t))) (&optional ihandles) (gnus-display-mime ihandles) (if ihandles nil (save-restriction (article-goto-body) (forward-line -1) (narrow-to-region (point) (point)) (let ((tail mu4e-view-fields)) (while tail (let ((field (car tail))) (let ((fieldval (mu4e-message-field msg field))) (cond ((memq field '(:list :maildir :path)) (let nil (mu4e--view-gnus-insert-header field fieldval))) ((eq field :message-id) (let nil (let* ((msgid (and t (plist-get msg :message-id)))) (if msgid (mu4e--view-gnus-insert-header field (format "<%s>" msgid)) nil)))) ((eq field :mailing-list) (let nil (let ((list (plist-get msg :list))) (if list (mu4e-get-mailing-list-shortname list) "")))) ((memq field '(:tags :flags)) (let nil (let ((flags (mapconcat #'(lambda (flag) (if (symbolp flag) (symbol-name flag) flag)) fieldval ", "))) (mu4e--view-gnus-insert-header field flags)))) ((eq field :size) (let nil (mu4e--view-gnus-insert-header field (mu4e-display-size fieldval)))) ((memq field '(:decryption :signature :attachments :date :user-agent :from-or-to :bcc :cc :from :to :subject)) 'nil) (t (let nil (mu4e--view-gnus-insert-header-custom msg field))))) (setq tail (cdr tail))))) (let ((gnus-treatment-function-alist '((gnus-treat-highlight-headers gnus-article-highlight-headers)))) (gnus-treat-article 'head)))))() gnus-article-prepare-display() mu4e--view-render-buffer((:path "/home/n/Documents/emails/iarchivedmywholelife-gmail/github/cur/1706283491.27109_1.laptop,U=6349:2,S" :size 8759 :list-post ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com")) :reply-to ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com" :name "progfolio/elpaca")) :cc ((:email "iarchivedmywholelife@gmail.com" :name "Nicholas Vollmer") (:email "comment@noreply.github.com" :name "Comment")) :changed (26035 53731 0) :date (26035 52304 0) :from ((:email "notifications@github.com" :name "drcxd")) :list "elpaca.progfolio.github.com" :message-id "progfolio/elpaca/issues/247/1912229603@github.com" :priority low :references ("progfolio/elpaca/issues/247@github.com") :subject "Re: [progfolio/elpaca] [Bug/Support]: Unable to find main elisp file for vertico (Issue #247)" :to ((:email "elpaca@noreply.github.com" :name "progfolio/elpaca")) :maildir "/iarchivedmywholelife-gmail/github" :flags (seen list personal) :docid 10667 :meta (:path "06:ff:z" :level 1 :date "n65b3cc50" :data-tstamp (0 0 0) :first-child t))) mu4e-view((:path "/home/n/Documents/emails/iarchivedmywholelife-gmail/github/cur/1706283491.27109_1.laptop,U=6349:2,S" :size 8759 :list-post ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com")) :reply-to ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com" :name "progfolio/elpaca")) :cc ((:email "iarchivedmywholelife@gmail.com" :name "Nicholas Vollmer") (:email "comment@noreply.github.com" :name "Comment")) :changed (26035 53731 0) :date (26035 52304 0) :from ((:email "notifications@github.com" :name "drcxd")) :list "elpaca.progfolio.github.com" :message-id "progfolio/elpaca/issues/247/1912229603@github.com" :priority low :references ("progfolio/elpaca/issues/247@github.com") :subject "Re: [progfolio/elpaca] [Bug/Support]: Unable to find main elisp file for vertico (Issue #247)" :to ((:email "elpaca@noreply.github.com" :name "progfolio/elpaca")) :maildir "/iarchivedmywholelife-gmail/github" :flags (seen list personal) :docid 10667 :meta (:path "06:ff:z" :level 1 :date "n65b3cc50" :data-tstamp (0 0 0) :first-child t))) mu4e~headers-view-handler((:path "/home/n/Documents/emails/iarchivedmywholelife-gmail/github/cur/1706283491.27109_1.laptop,U=6349:2,S" :size 8759 :list-post ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com")) :reply-to ((:email "reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com" :name "progfolio/elpaca")) :cc ((:email "iarchivedmywholelife@gmail.com" :name "Nicholas Vollmer") (:email "comment@noreply.github.com" :name "Comment")) :changed (26035 53731 0) :date (26035 52304 0) :from ((:email "notifications@github.com" :name "drcxd")) :list "elpaca.progfolio.github.com" :message-id "progfolio/elpaca/issues/247/1912229603@github.com" :priority low :references ("progfolio/elpaca/issues/247@github.com") :subject "Re: [progfolio/elpaca] [Bug/Support]: Unable to find main elisp file for vertico (Issue #247)" :to ((:email "elpaca@noreply.github.com" :name "progfolio/elpaca")) :maildir "/iarchivedmywholelife-gmail/github" :flags (seen list personal) :docid 10667 :meta (:path "06:ff:z" :level 1 :date "n65b3cc50" :data-tstamp (0 0 0) :first-child t))) mu4e--server-filter(# "\3763e2\377(:view (:path \"/home/n/Documents/emails/iarchivedmywholelife-gmail/github/cur/1706283491.27109_1.laptop,U=6349:2,S\" :size 8759 :list-post ((:email \"reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com\")) :reply-to ((:email \"reply+AKP67P2AJCX6OPNAS73RAYWDYD7NBEVBNHHH2SCZV4@reply.github.com\" :name \"progfolio/elpaca\")) :cc ((:email \"iarchivedmywholelife@gmail.com\" :name \"Nicholas Vollmer\") (:email \"comment@noreply.github.com\" :name \"Comment\")) :changed (26035 53731 0) :date (26035 52304 0) :from ((:email \"notifications@github.com\" :name \"drcxd\")) :list \"elpaca.progfolio.github.com\" :message-id \"progfolio/elpaca/issues/247/1912229603@github.com\" :priority low :references (\"progfolio/elpaca/issues/247@github.com\") :subject \"Re: [progfolio/elpaca] [Bug/Support]: Unable to find main elisp file for vertico (Issue #247)\" :to ((:email \"elpaca@noreply.github.com\" :name \"progfolio/elpaca\")) :maildir \"/iarchivedmywholelife-gmail/github\" :flags (seen list personal) :docid 10667))\n;; mu> ") In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-01-27 built on laptop Repository revision: 744a10a4d722a361bc21561b4162045e4ec97ed6 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Arch Linux ------------=_1706951582-6915-5--