From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Subject: Re: gnus-thread-sort-functions
Date: Thu, 07 May 2009 14:13:26 +0200 [thread overview]
Message-ID: <87hbzxjel5.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <87hbzx9wcu.fsf@mundaneum.com>
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 -
next prev parent reply other threads:[~2009-05-07 12:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 7:59 gnus-thread-sort-functions Sébastien Vauban
2009-05-07 12:13 ` Tassilo Horn [this message]
[not found] ` <mailman.6797.1241698429.31690.info-gnus-english@gnu.org>
2009-05-07 13:33 ` gnus-thread-sort-functions Richard Riley
2009-05-07 19:51 ` gnus-thread-sort-functions Tassilo Horn
2009-05-08 12:41 ` gnus-thread-sort-functions Sébastien Vauban
2009-05-08 15:29 ` gnus-thread-sort-functions Tassilo Horn
[not found] ` <mailman.6851.1241796615.31690.info-gnus-english@gnu.org>
2009-06-05 11:52 ` gnus-thread-sort-functions Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hbzxjel5.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).