Gnus development mailing list
 help / color / mirror / Atom feed
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:23:07 +0100	[thread overview]
Message-ID: <87k0ganb6c.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87pmq2nbo2.fsf@tullinup.koldfront.dk>

Adam writes:

>     (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)))

> I should step through that and see what actually happens.

gnus--variable-pitch-p returns nil on gnus-header-name, so
mail-header-fold-field gets called!

M-x describe-face on gnus-header-name gives this:

    Face: gnus-header-name (sample) (customize this face)

    Documentation:
    Face used for displaying header names.

    Defined in ‘gnus-art.el’.

               Family: DejaVu Sans Condensed
              Foundry: unspecified
                Width: unspecified
               Height: unspecified
               Weight: unspecified
                Slant: unspecified
           Foreground: maroon
    DistantForeground: unspecified
           Background: unspecified
            Underline: unspecified
             Overline: unspecified
       Strike-through: unspecified
                  Box: unspecified
              Inverse: unspecified
              Stipple: unspecified
                 Font: unspecified
              Fontset: unspecified
               Extend: unspecified
              Inherit: unspecified

Hm, why doesn't Emacs think DejaVu Sans Condensed is variable pitch?

Maybe I should step through gnus--variable-pitch-p as well.

  (gnus--variable-pitch-p 'gnus-header-name) → nil

Ok, so the reason is that the definition of a variable pitch face is
whether it is, or inherits from, the face variable-pitch.

I just used customize to set the font of gnus-header-name.


  Best regards,

    Adam

-- 
 "Så ruller domino-effekten.                                Adam Sjøgren
  Du kender det selv!"                                 asjo@koldfront.dk



  reply	other threads:[~2021-12-11 20:23 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
2021-12-11 20:23     ` Adam Sjøgren [this message]
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=87k0ganb6c.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).