From unknown Sun Jun 22 11:34:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68893 <68893@debbugs.gnu.org> To: bug#68893 <68893@debbugs.gnu.org> Subject: Status: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Reply-To: bug#68893 <68893@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:34:27 +0000 retitle 68893 30.0.50; pixel-fill-region errors when folding message header= s in Gnus reassign 68893 emacs submitter 68893 Stephen Berman severity 68893 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 10:33:30 2024 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 10:53:09 2024 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 To: Stephen Berman In-Reply-To: <875xz6285v.fsf@gmx.net> (bug-gnu-emacs@gnu.org) Subject: Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus References: <875xz6285v.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68893 Cc: 68893@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 (---) 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 debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 14:35:50 2024 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 To: Eli Zaretskii Subject: Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus 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-Debbugs-Envelope-To: 68893 Cc: 68893@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: -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 debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 14:39:13 2024 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 To: Stephen Berman , No Wayman In-Reply-To: <87y1c2zmke.fsf@gmx.net> (message from Stephen Berman on Fri, 02 Feb 2024 20:35:29 +0100) 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68893 Cc: 68893@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: 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 debbugs-submit-bounces@debbugs.gnu.org Fri Feb 02 16:37:03 2024 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 To: Eli Zaretskii Subject: Re: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus 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-Debbugs-Envelope-To: 68893 Cc: Stephen Berman , 68893@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: -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 debbugs-submit-bounces@debbugs.gnu.org Sat Feb 03 04:12:18 2024 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. From unknown Sun Jun 22 11:34:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Mar 2024 12:24:09 +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