From: Lars Ingebrigtsen <larsi@gnus.org>
To: Gnus Users <ding@gnus.org>
Subject: Re: Customizing %[, %] and fill width
Date: Wed, 25 Nov 2020 13:57:31 +0100 [thread overview]
Message-ID: <87y2ipzj9g.fsf@gnus.org> (raw)
In-Reply-To: <m2zh36zzi3.fsf@gmail.com> (Pankaj Jangid's message of "Tue, 24 Nov 2020 18:24:28 +0530")
Pankaj Jangid <pankaj.jangid@gmail.com> writes:
> I am customizing summary line format to please my eyes. So far it is
> going really really great. Just two queries that I need answer for:
>
> Value of my `gnus-summary-line-format' is
> "%U%R%z %[%-18,18&user-date;│%4L:%-25,25f%] %B%s\n"
>
> 1. %[%] produce contextual output either `[]' or `<>' depending upon
> whether the entry is real child or adopted. Is there a way to customize
> these two output values?
Nope:
(defun gnus-summary-insert-line (header level current undownloaded
[...]
(gnus-tmp-opening-bracket (if gnus-tmp-dummy ?\< ?\[))
(gnus-tmp-closing-bracket (if gnus-tmp-dummy ?\> ?\]))
Patches to fix this are welcome.
> 2. The above value of `gnus-summary-line-format' product perfectly
> aligned output; except when the sender name is non-english. In that
> case, the placement of [] or <> is not in alignment with other entries
> above and below. Is there a way to handle that?
If you choose fonts where all characters have widths that are multiples
of each other, then things will align, but otherwise not. I don't think
there's any way to get an aligned summary buffer, realistically.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-11-25 12:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 12:54 Pankaj Jangid
2020-11-25 12:57 ` Lars Ingebrigtsen [this message]
2020-11-25 19:14 ` Pankaj Jangid
[not found] ` <87eekgxv9i.fsf@gnus.org>
[not found] ` <m2pn40tl3n.fsf@codeisgreat.org>
[not found] ` <87h7pcuza8.fsf@gnus.org>
2020-12-12 5:22 ` Pankaj Jangid
2020-12-12 10:47 ` Lars Ingebrigtsen
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=87y2ipzj9g.fsf@gnus.org \
--to=larsi@gnus.org \
--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).