all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>,
	No Wayman <iarchivedmywholelife@gmail.com>
Cc: 68893@debbugs.gnu.org
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	[thread overview]
Message-ID: <86mssi4pwz.fsf@gnu.org> (raw)
In-Reply-To: <87y1c2zmke.fsf@gmx.net> (message from Stephen Berman on Fri, 02 Feb 2024 20:35:29 +0100)

> From: Stephen Berman <stephen.berman@gmx.net>
> 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.





  reply	other threads:[~2024-02-02 19:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-02 15:33 bug#68893: 30.0.50; pixel-fill-region errors when folding message headers in Gnus Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-02 15:52 ` Eli Zaretskii
2024-02-02 19:35   ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-02 19:38     ` Eli Zaretskii [this message]
2024-02-02 21:37       ` No Wayman
2024-02-03  9:11         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86mssi4pwz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=68893@debbugs.gnu.org \
    --cc=iarchivedmywholelife@gmail.com \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.