Gnus development mailing list
 help / color / mirror / Atom feed
* New %U group line identifier
@ 2003-01-05  8:52 Lars Magne Ingebrigtsen
  2003-01-05 15:57 ` Steve Youngs
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-05  8:52 UTC (permalink / raw)


I realized that I was mostly interested in how many new articles
there are in a group; not how many old articles I just hadn't gotten
around to dealing with yet.  I used to tick articles, but that's
labor intensive, so I've now implemented the %U group line format
spec, which displays the number of unseen articles in a group.

Works fer me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New %U group line identifier
  2003-01-05  8:52 New %U group line identifier Lars Magne Ingebrigtsen
@ 2003-01-05 15:57 ` Steve Youngs
  2003-01-05 21:49 ` Neil Crellin
       [not found] ` <hhlm1y8e62.fsf@blah.pl>
  2 siblings, 0 replies; 6+ messages in thread
From: Steve Youngs @ 2003-01-05 15:57 UTC (permalink / raw)


|--==> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

  LMI> Works fer me.

And me.  Really useful, thanks muchly.

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---|
|            XEmacs - It's not just an editor.             |
|                    It's a way of life.                   |
|------------------------------------<youngs@xemacs.org>---|




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New %U group line identifier
  2003-01-05  8:52 New %U group line identifier Lars Magne Ingebrigtsen
  2003-01-05 15:57 ` Steve Youngs
@ 2003-01-05 21:49 ` Neil Crellin
  2003-01-06  2:10   ` Lars Magne Ingebrigtsen
       [not found] ` <hhlm1y8e62.fsf@blah.pl>
  2 siblings, 1 reply; 6+ messages in thread
From: Neil Crellin @ 2003-01-05 21:49 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> ............ so I've now implemented the %U group line format
> spec, which displays the number of unseen articles in a group.

> Works fer me.

Sorry, not fer me.

Signaling: (wrong-type-argument sequencep 158)
  mapcar(#<compiled-function (char) "...(8)" [char length gnus-char-width] 3> 158)
  gnus-correct-length(158)
  (- 3 (gnus-correct-length val))
  (let* ((val ...) (need ...)) (if (> need 0) (concat ... val nil) val))
  (gnus-xmas-format "%s%s (%s) %s! %s? %s/%s: " (char-to-string gnus-tmp-marked-mark) (char-to-string gnus-tmp-subscribed) (int-to-string gnus-tmp-level) (let* (... ...) (if ... ... val)) (let* (... ...) (if ... ... val)) (let (...) (if ... ... gnus-tmp-number-of-unread)) (let* (... ...) (if ... ... val)))
  (insert (gnus-xmas-format "%s%s (%s) %s! %s? %s/%s: " (char-to-string gnus-tmp-marked-mark) (char-to-string gnus-tmp-subscribed) (int-to-string gnus-tmp-level) (let* ... ...) (let* ... ...) (let ... ...) (let* ... ...)))
  (progn (insert (gnus-xmas-format "%s%s (%s) %s! %s? %s/%s: " ... ... ... ... ... ... ...)) (gnus-put-text-property (point) (progn ... ...) gnus-mouse-face-prop gnus-mouse-face) (insert "\n"))
  eval((progn (insert (gnus-xmas-format "%s%s (%s) %s! %s? %s/%s: " ... ... ... ... ... ... ...)) (gnus-put-text-property (point) (progn ... ...) gnus-mouse-face-prop gnus-mouse-face) (insert "\n")))
  gnus-group-insert-group-line("nnml:errors.postmaster" 3 ((forward 168481 176243) (dormant 51405) (expire (182766 . 185053)) (seen 51405 (55385 . 55407) (56080 . 56082) (60457 . 60510) (72758 . 72759) (75054 . 75059) (80685 . 83467) (83474 . 83557) (83562 . 85111) (85113 . 85477) (85486 . 85911) (120562 . 121398) (121409 . 150470) (150483 . 177157) (177192 . 185053))) 158 (nnml ""))
  gnus-group-prepare-flat(5 nil nil)
  gnus-group-list-groups(nil)
  gnus-group-get-new-news(nil)
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New %U group line identifier
  2003-01-05 21:49 ` Neil Crellin
@ 2003-01-06  2:10   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-06  2:10 UTC (permalink / raw)


Neil Crellin <neilc@wallaby.cc> writes:

> Signaling: (wrong-type-argument sequencep 158)
>   mapcar(#<compiled-function (char) "...(8)" [char length gnus-char-width] 3> 158)

Hm.  That's odd -- %U is a number, so it shouldn't be calling
something like that.  What's the value of your
`gnus-group-line-format' variable?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New %U group line identifier
       [not found] ` <hhlm1y8e62.fsf@blah.pl>
@ 2003-01-07  4:50   ` Lars Magne Ingebrigtsen
       [not found]     ` <hhptr92djb.fsf@blah.pl>
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-07  4:50 UTC (permalink / raw)


Maciej Matysiak <phoner.ding@blah.pl> writes:

> btw., is it possible to change the gnus-group-line-format on the fly? gnus
> still uses the old format after i evaluate the changed line in the buffer,
> i have to restart gnus to see the changes.

If I set `gnus-group-line-format', the next `l' I do use the new
format.  How do you set that variable?

> another thing, is it possible to have different gnus-group-line-format for
> different groups? like, other for mail groups and other for news groups?

There is no pre-defined functionality in Gnus for doing this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New %U group line identifier
       [not found]     ` <hhptr92djb.fsf@blah.pl>
@ 2003-01-08  4:05       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-01-08  4:05 UTC (permalink / raw)


Maciej Matysiak <phoner.ding@blah.pl> writes:

>>> another thing, is it possible to have different gnus-group-line-format for
>>> different groups? like, other for mail groups and other for news groups?
>> There is no pre-defined functionality in Gnus for doing this.
>
> i know. would it be hard to implement such functionality?

You could defadvice `gnus-group-insert-group-line' to set and eval
the group line format based on what the group name is.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-01-08  4:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-05  8:52 New %U group line identifier Lars Magne Ingebrigtsen
2003-01-05 15:57 ` Steve Youngs
2003-01-05 21:49 ` Neil Crellin
2003-01-06  2:10   ` Lars Magne Ingebrigtsen
     [not found] ` <hhlm1y8e62.fsf@blah.pl>
2003-01-07  4:50   ` Lars Magne Ingebrigtsen
     [not found]     ` <hhptr92djb.fsf@blah.pl>
2003-01-08  4:05       ` Lars Magne Ingebrigtsen

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