From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Subject: Re: Recent change on Emacs master: aggressive word-wrap of header lines in article display
Date: Sat, 11 Dec 2021 21:12:29 +0100 [thread overview]
Message-ID: <87pmq2nbo2.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87y24qnccb.fsf@tullinup.koldfront.dk>
Adam writes:
> Here is the result of bisecting the new line wrapping of headers:
> Enable gnus-treat-fold-headers by default
This following commit is supposed to change gnus-treat-fold-headers to
fold variable pitch fonts at the window width, it looks like:
commit 2d60566c8787b63b5e4e2958e9ec9f55fbcf9e87
Author: Lars Ingebrigtsen <larsi@gnus.org>
Date: Wed Dec 1 06:30:32 2021 +0100
Use proportional fonts in the Gnus headers by default
* lisp/gnus/gnus-art.el (gnus-header): Inherit from `variable-pitch'.
(gnus--variable-pitch-p): New helper function.
(gnus-article-treat-fold-headers): Fill using pixel filling.
I.e. the code here:
(defun gnus-article-treat-fold-headers ()
...
(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)))
...
But it doesn't on my screen, as seen in the screenshot at the top of
this thread.
I should step through that and see what actually happens.
Best regards,
Adam
--
"I refuse to be victimized by notions of virtuous Adam Sjøgren
behaviour" asjo@koldfront.dk
next prev parent reply other threads:[~2021-12-11 20:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-11 16:32 Adam Sjøgren
2021-12-11 16:58 ` Russ Allbery
2021-12-11 17:41 ` Andreas Schwab
2021-12-11 17:57 ` Adam Sjøgren
2021-12-11 19:27 ` Emanuel Berg
2021-12-11 18:49 ` Russ Allbery
2021-12-11 17:57 ` Adam Sjøgren
2021-12-11 17:31 ` Eric Abrahamsen
2021-12-11 18:01 ` Adam Sjøgren
2021-12-11 18:45 ` Jose A. Ortega Ruiz
2021-12-11 20:01 ` Adam Sjøgren
2021-12-11 19:57 ` Adam Sjøgren
2021-12-11 20:12 ` Adam Sjøgren [this message]
2021-12-11 20:23 ` Adam Sjøgren
2021-12-11 20:29 ` Adam Sjøgren
2021-12-11 20:40 ` Eric Abrahamsen
2021-12-11 20:51 ` Adam Sjøgren
2021-12-11 20:54 ` Eric Abrahamsen
2021-12-11 21:04 ` Adam Sjøgren
2021-12-11 23:21 ` Stephen Berman
2021-12-12 0:15 ` Eric Abrahamsen
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=87pmq2nbo2.fsf@tullinup.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).