[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus-thread-sort-functions
From: |
Tassilo Horn |
Subject: |
Re: gnus-thread-sort-functions |
Date: |
Thu, 07 May 2009 14:13:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) |
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:
--8<---------------cut here---------------start------------->8---
(setq gnus-thread-sort-functions
'(gnus-thread-sort-by-number
(not gnus-thread-sort-by-most-recent-date)
gnus-thread-sort-by-total-score))
--8<---------------cut here---------------end--------------->8---
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
--
"Emacs is not a development tool but a way of life."
- David Kastrup in alt.religion.emacs -
- gnus-thread-sort-functions, Sébastien Vauban, 2009/05/07
- Re: gnus-thread-sort-functions,
Tassilo Horn <=
- Message not available
- Message not available