From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Date: Fri, 02 Feb 2024 21:38:52 +0200 Message-ID: <86mssi4pwz.fsf@gnu.org> References: <875xz6285v.fsf@gmx.net> <86v87650dr.fsf@gnu.org> <87y1c2zmke.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68893@debbugs.gnu.org To: Stephen Berman , No Wayman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 02 20:40:11 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVzOV-0005kU-5k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 20:40:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVzOD-0000CG-Ut; Fri, 02 Feb 2024 14:39:53 -0500 Original-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 1rVzOB-0000Bi-7M for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 14:39:51 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVzOA-0003RM-Vs for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 14:39:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVzOL-0002PB-Ob for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 14:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: 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 Original-Received: via spool by 68893-submit@debbugs.gnu.org id=B68893.17069027539176 (code B ref 68893); Fri, 02 Feb 2024 19:40:01 +0000 Original-Received: (at 68893) by debbugs.gnu.org; 2 Feb 2024 19:39:13 +0000 Original-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 Original-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 Original-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==; In-Reply-To: <87y1c2zmke.fsf@gmx.net> (message from Stephen Berman on Fri, 02 Feb 2024 20:35:29 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279351 Archived-At: > 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.