Gnus development mailing list
 help / color / mirror / Atom feed
From: jidanni@jidanni.org
To: ding@gnus.org
Subject: gnus-summary-line-format rather daunting to the average user
Date: Thu, 21 Jul 2011 08:19:28 +0800	[thread overview]
Message-ID: <87d3h4wkmn.fsf@jidanni.org> (raw)

Gentlemen,
gnus-summary-line-format is a variable defined in `gnus.el'.
Its value is
"%U%R%z%I%(%t %3{%~(cut-left 2)~(max-right 6)~(pad 6)o%}%3L|%us|%-14,14f%)%3{%un%}:%s\n"
Original value was <---**** P.S., extra blank here ****
"%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n"
...The %U (status), %R (replied) and %z (zcore) specs have to be handled
with care.  For reasons of efficiency, Gnus will compute what column
these characters will end up in, and "hard-code" that.  This means that
it is invalid to have these specs after a variable-length spec.  Well,
you might not be arrested, but your summary buffer will look strange,
which is bad enough.

Forget it. I give up trying to understand all this.

All I know is with what I have now, things aren't lining up.

   1 110707 19|2.1|Zoe           :Signup Complete
   1 110714  6|4.4|<complaints@cb:Your complaint has been received
   1 110714 43|-97.7|Support       :[forum.userstyles.org] luckymouse commented on your
   1 110714 11|-97.7|Support       :[forum.userstyles.org] makondo commented on your di
   1 110717232|4.6|PChome相簿    :[PChome相簿]訊息通知小天使
   1 110717103|11.2|PChome名片盒  :Missme 已確認你們為PChome好友
   1 110719208|-0.4|Flickr Mail   :[Flickr] michael_137 added your photo "2009台灣同志
   1 110719 16|1.0|變裝姊妹的奇幻:[變裝姊妹的奇幻私密] 《》新回復通知
   1 110719 13|-101.0|Cron Daemon   :Cron <jidanni@hoffa> set -e; cd youtube; test -f o
   1 110721  5||-> root@jidann:Output from your job       85

OK, we are about to set off on a trip ti make the 2.1, 4.4 field above
have a minimal width.

I decided to take the reader along so he sees how painful it is.

Firstly all those arcane one letter codes. They should be full names.

OK, it seems I want to adjust the %us string.

(setq gnus-summary-line-format
"%U%R%z%I%(%t %3{%~(cut-left 2)~(max-right 6)~(pad 6)o%}%3L|%6us|%-14,14f%)%3{%un%}:%s\n")

OK, that wasn't that tough. OK, See ya. Bye.



             reply	other threads:[~2011-07-21  0:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-21  0:19 jidanni [this message]
2011-08-21  3:47 ` Lars Magne 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=87d3h4wkmn.fsf@jidanni.org \
    --to=jidanni@jidanni.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).