GNU bug report logs -
#68893
30.0.50; pixel-fill-region errors when folding message headers in Gnus
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Fri, 02 Feb 2024 17:52:48 +0200 Eli Zaretskii <eliz <at> gnu.org> 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" <bug-gnu-emacs <at> gnu.org>
>>
>> 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:
>> <CALDnm52NYEfCacWrCxi1JywLZ6O5rRRkx9H9qAod5DcM9ayJ-w <at> mail.gmail.com>
>> 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:
[Message part 2 (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
(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
This bug report was last modified 1 year and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.