[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus-thread-sort-functions
From: |
Richard Riley |
Subject: |
Re: gnus-thread-sort-functions |
Date: |
Thu, 07 May 2009 15:33:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Tassilo Horn <tassilo@member.fsf.org> writes:
> Sébastien Vauban <zthjwsqqafhv@spammotel.com>
> writes:
>
> Hi Sébastien,
>
>> I would like to have a "chronological" (but threaded) view of the mails I
>> read, that is:
>>
>> o threads sorted by date (with the most recent at the bottom of the
>> screen);
>>
>> o articles in threads sorted by date (and reference -- of course):
>>
>> ...43 3.3k ● [STUMP] run-or-raise
>> firefox
>> David Hansen 2006-11-26 05:05 4.3k └─▶
>> Jay Belanger 2006-11-26 22:26 4.0k ├─▶
>> Jeremy Hankins 2006-11-27 00:15 5.3k │└─▶
>> Jay Belanger 2006-11-27 01:01 3.5k │ └─▶
>> + Shawn Betts 2006-11-27 04:22 3.8k │ └─▶
>> Jay Belanger 2006-11-27 01:25 3.7k │ └─▶
>> + Shawn Betts 2006-11-27 03:11 3.7k └─▶
>>
>> Though, playing with `gnus-thread-sort-functions' seems to achieve one but
>> the
>> opposite of the other: with my current setup ...
>>
>> gnus-thread-sort-functions is a variable defined in `gnus-sum.el'.
>> Its value is
>> (gnus-thread-sort-by-number
>> gnus-thread-sort-by-most-recent-date)
>>
>> ... the sorting inside a thread is correct, but thread roots are sorted in
>> the
>> anti-chronological view.
>>
>> Is there a way to set up both independently?
>
> Yes, you have to invert the predicate. Here's what I use:
>
>
>
> (setq gnus-thread-sort-functions
> '(gnus-thread-sort-by-number
> (not gnus-thread-sort-by-most-recent-date)
> gnus-thread-sort-by-total-score))
>
>
>
> With this setup I get this behavior:
>
> - Threads with higher score appear on top of the summary
> - Threads with equal score appear sorted by date, e.g.
> newer threads are below older ones
> - Inside threads newer articles come before older ones
>
> Bye,
> Tassilo
Just for anyone googling thread sorts, mine is
(setq gnus-thread-sort-functions
'(gnus-thread-sort-by-number
(lambda (t1 t2) (not (gnus-thread-sort-by-date t1 t2)))))
Which has my preferred format of newer emails/posts at the top and
threads by date.