Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-group-line-format - hint needed.
@ 2002-05-18 22:32 Maciej Matysiak
  0 siblings, 0 replies; only message in thread
From: Maciej Matysiak @ 2002-05-18 22:32 UTC (permalink / raw)



hi,

i use the following setup:

(setq gnus-group-line-format
	  "\(%4I/%3T/%4i\)%p%S%M %m%P%5y: %(%~(pad-right 24)G%) %uT\n")

which makes my group line look like:

(  87/  2/  89)          24: personal-2002-05         19:47:16   18.05.2002

but, for some groups (in fact, a majority of them) one or all of the values
between the brackets are '0'. i know, that i can rid of them using:

(setq gnus-group-line-format
	  "\(%~(ignore 0)4I/%~(ignore 0)3T/%~(ignore 0)4i\)%p%S%M %m%P%5y: %(%~(pad-right 24)G%) %uT\n")

but, that still leaves the /'s:

(    /  1/   1)          29: ding-l-2002-05           00:10:36   19.05.2002

my question is: is it possible to modify the gnus-group-line-format, so it
won't display the slash[1] when the value of variable right to it is 0? and
even more than that, i'd like to skip the "( ... )" part when all values are
equal to zero. if i'm not clear, here's an illustration how the group line
should look like:

(       1/   1)          29: ding-l-2002-05           00:57:19   19.05.2002
                         26: djbdns-l-2002-05         21:20:07   18.05.2002
(   6/       6)           0: djbware-l-2002-05        20:27:33   18.05.2002

is it doable somehow (at least partly?) :)

 m.m. (i like lisp, but lisp doesn't like me)

[1] i need that slash, really :)
-- 
 use gnus not guns!



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-18 22:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-18 22:32 gnus-group-line-format - hint needed Maciej Matysiak

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