* gnus-thread-sort reverse?
@ 2001-02-19 20:06 Nick Papadonis
2001-02-19 20:15 ` ShengHuo ZHU
0 siblings, 1 reply; 5+ messages in thread
From: Nick Papadonis @ 2001-02-19 20:06 UTC (permalink / raw)
I'm trying to reverse sort threads by date. I have read the info
file and this isn't covered. The mailing list had a brief mention of
this in 1998 and the following was added to gnus:
gnus-sum.el:9273:(defun gnus-summary-sort-by-date (&optional reverse)
gnus-sum.el:9277: (gnus-summary-sort 'date reverse))
I tried inserting the following in my Group Params:
(gnus-thread-sort-functions (gnus-thread-sort-by-date REVERSE))
This does not sort reverse. Can anyone see what I'm doing wrong?
Thanks.
--
- Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-thread-sort reverse?
2001-02-19 20:06 gnus-thread-sort reverse? Nick Papadonis
@ 2001-02-19 20:15 ` ShengHuo ZHU
2001-02-19 20:34 ` Nick Papadonis
0 siblings, 1 reply; 5+ messages in thread
From: ShengHuo ZHU @ 2001-02-19 20:15 UTC (permalink / raw)
Nick Papadonis <npapadon@yahoo.com> writes:
> I'm trying to reverse sort threads by date. I have read the info
> file and this isn't covered. The mailing list had a brief mention of
> this in 1998 and the following was added to gnus:
> gnus-sum.el:9273:(defun gnus-summary-sort-by-date (&optional reverse)
> gnus-sum.el:9277: (gnus-summary-sort 'date reverse))
>
> I tried inserting the following in my Group Params:
> (gnus-thread-sort-functions (gnus-thread-sort-by-date REVERSE))
>
> This does not sort reverse. Can anyone see what I'm doing wrong?
Try
(gnus-thread-sort-functions
(list
(lambda
(h1 h2)
(gnus-thread-sort-by-date h2 h1))))
ShengHuo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-thread-sort reverse?
2001-02-19 20:15 ` ShengHuo ZHU
@ 2001-02-19 20:34 ` Nick Papadonis
2001-02-19 20:41 ` Kai Großjohann
0 siblings, 1 reply; 5+ messages in thread
From: Nick Papadonis @ 2001-02-19 20:34 UTC (permalink / raw)
Cc: ding
ShengHuo,
It only works if I do:
--- WORKS
((gnus-summary-line-format "%U%R%z%4{%4,4L%} %(%1{%[%-18,18n%]%}%) |%2{%d%}| %3{%s%}\n")
(gnus-thread-sort-functions
(list
(lambda
(h1 h2)
(gnus-thread-sort-by-date h2 h1)))))
--
If I put (gnus-show-threads nil) ..- to keep unthreaded -.. before
(gnus-thread-sort-functions), sorting does not happen reverse. So I
guess no reverse sort without threading.
-- DOESN'T WORK
((gnus-show-threads nil)
(gnus-summary-line-format "%U%R%z%4{%4,4L%} %(%1{%[%-18,18n%]%}%) |%2{%d%}| %3{%s%}\n")
(gnus-thread-sort-functions
(list
(lambda
(h1 h2)
(gnus-thread-sort-by-date h2 h1)))))
--
So what about he optional REVERSE tag given to gnus-thread-sort*?
Does it not work anymore?
Thanks.
ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> Nick Papadonis <npapadon@yahoo.com> writes:
>
> > I'm trying to reverse sort threads by date. I have read the info
> > file and this isn't covered. The mailing list had a brief mention of
> > this in 1998 and the following was added to gnus:
> > gnus-sum.el:9273:(defun gnus-summary-sort-by-date (&optional reverse)
> > gnus-sum.el:9277: (gnus-summary-sort 'date reverse))
> >
> > I tried inserting the following in my Group Params:
> > (gnus-thread-sort-functions (gnus-thread-sort-by-date REVERSE))
> >
> > This does not sort reverse. Can anyone see what I'm doing wrong?
>
> Try
>
> (gnus-thread-sort-functions
> (list
> (lambda
> (h1 h2)
> (gnus-thread-sort-by-date h2 h1))))
>
>
> ShengHuo
>
--
- Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-thread-sort reverse?
2001-02-19 20:34 ` Nick Papadonis
@ 2001-02-19 20:41 ` Kai Großjohann
2001-02-19 20:46 ` Nick Papadonis
0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2001-02-19 20:41 UTC (permalink / raw)
Cc: ShengHuo ZHU, ding
On 19 Feb 2001, Nick Papadonis wrote:
> If I put (gnus-show-threads nil) ..- to keep unthreaded -.. before
> (gnus-thread-sort-functions), sorting does not happen reverse. So I
> guess no reverse sort without threading.
Well, of course the variable gnus-thread-sort-functions says what
happens when sorting threads. When threading is turned off, see the
variable gnus-article-sort-functions.
I will now extend the documentation for these two variables to point
at each other.
kai
--
Be indiscrete. Do it continuously.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-thread-sort reverse?
2001-02-19 20:41 ` Kai Großjohann
@ 2001-02-19 20:46 ` Nick Papadonis
0 siblings, 0 replies; 5+ messages in thread
From: Nick Papadonis @ 2001-02-19 20:46 UTC (permalink / raw)
Cc: ShengHuo ZHU, ding
Thanks Kai. gnus-article-sort-functions was needed.
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> On 19 Feb 2001, Nick Papadonis wrote:
>
> > If I put (gnus-show-threads nil) ..- to keep unthreaded -.. before
> > (gnus-thread-sort-functions), sorting does not happen reverse. So I
> > guess no reverse sort without threading.
>
> Well, of course the variable gnus-thread-sort-functions says what
> happens when sorting threads. When threading is turned off, see the
> variable gnus-article-sort-functions.
>
> I will now extend the documentation for these two variables to point
> at each other.
>
> kai
> --
> Be indiscrete. Do it continuously.
>
--
- Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-02-19 20:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-19 20:06 gnus-thread-sort reverse? Nick Papadonis
2001-02-19 20:15 ` ShengHuo ZHU
2001-02-19 20:34 ` Nick Papadonis
2001-02-19 20:41 ` Kai Großjohann
2001-02-19 20:46 ` Nick Papadonis
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).