From: Julien Cubizolles <j.cubizolles@free.fr>
To: info-gnus-english@gnu.org
Subject: limit strike-through to the width of the string in gnus-summary-mode-line-format
Date: Thu, 02 Feb 2023 09:07:22 +0100 [thread overview]
Message-ID: <87sffowkw5.fsf@free.fr> (raw)
I'm using the strike-through face spec pour the gnus-summary-cancelled
face. The striking line runs all the way to the last column of the
buffer but I'd like it to not strike the spaces used for padding.
With
--8<---------------cut here---------------start------------->8---
(copy-face 'gnus-summary-normal-unread 'gnus-face-5)
(set-face-attribute 'gnus-face-5 nil :strike-through nil)
(setq gnus-face-5 'gnus-face-5)
(set-face-attribute 'gnus-summary-cancelled nil :strike-through t)
(setq gnus-summary-line-format "%5{%U%R%z%I%(%[%4L: %-23,23f%]%)%} %s\n")
--8<---------------cut here---------------end--------------->8---
gnus-summary-delete-article will strike through the subject field and
also through the spaces following it. I'd like it to stop at the end of
the %s field. I've played around with tabs %=, cutting and maxing,
padding but there always something wrong, mostly because I don't know
the length of the string of spaces that will be added after the %s
subject.
Is there a way to get to specify a face, with %number{%s%} but only for
the length of the %s string inserted ?
--
Julien Cubizolles
reply other threads:[~2023-02-02 8:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87sffowkw5.fsf@free.fr \
--to=j.cubizolles@free.fr \
--cc=info-gnus-english@gnu.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).