From: Tassilo Horn <tsdh@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Sorting with threads in Gnus
Date: Tue, 30 Jul 2013 10:01:36 +0200 [thread overview]
Message-ID: <87hafccw7z.fsf@thinkpad.tsdh.org> (raw)
In-Reply-To: 877gg8a4td.fsf@ericabrahamsen.net
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> That's actually the same as the order I had before my latest change,
>> but maybe that was only a coincidence. At least it seems more
>> correct to explicitly sort subthreads chronologically instead of not
>> sorting them at all.
>
> I think it defaults to sorting by article number, which often looks a
> lot like date -- docs seem to say that one is dependent on when the
> message is sent, and the other on when it arrives...
Yeah, but my code stopped sorting of subthreads at all. So I basically
assumed that the threads were sorted according to article number before
they were passed to the thread sorting functions. That's probably a
false assumption.
Anyway, my last changes made the name `gnus-sort-threads-recursively'
inappropriate. And also it was only a minor step away from custom
subthread sorting. So now I've implemented that:
,----
| commit fff80f88ef397fca65cb382217ce9c9a08b1329e
| Author: Tassilo Horn <tsdh@gnu.org>
| Date: Tue Jul 30 09:52:15 2013 +0200
|
| Make subthread sorting customizable and add docs for it.
|
| * gnus-sum.el (gnus-subthread-sort-functions): New defcustom.
| (gnus-sort-threads-recursively): Delete defcustom.
| (gnus-sort-threads-recursive): Adapt accordingly.
|
| * gnus.texi (Sorting the Summary Buffer): Document new defcustom
| `gnus-subthread-sort-functions' and remove the obsolete documentation
| of `gnus-sort-threads-recursively'.
|
`----
So `gnus-sort-threads-recursively' is gone now, and
`gnus-subthread-sort-functions' takes its place. By default its value
is 'gnus-thread-sort-functions which means to sort subthreads also using
`gnus-thread-sort-functions', but you can set it to any list of sort
functions you want.
So now I use this:
--8<---------------cut here---------------start------------->8---
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-number
gnus-thread-sort-by-most-recent-date
gnus-thread-sort-by-total-score)
gnus-subthread-sort-functions '(gnus-thread-sort-by-number
gnus-thread-sort-by-date)
gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date)
--8<---------------cut here---------------end--------------->8---
So threads are sorted from highest score/most recent article to lowest
score/least recent article, but inside threads I simply sort from old to
new.
Bye,
Tassilo
next prev parent reply other threads:[~2013-07-30 8:01 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 8:49 Sorting with threads in Gnus N. Raghavendra
2013-07-24 6:21 ` Eric Abrahamsen
2013-07-24 8:17 ` N. Raghavendra
2013-07-24 13:15 ` Tassilo Horn
2013-07-26 4:37 ` Eric Abrahamsen
2013-07-26 5:48 ` Tassilo Horn
2013-07-26 9:01 ` Eric Abrahamsen
2013-07-26 13:06 ` Tassilo Horn
2013-07-26 13:26 ` Tassilo Horn
2013-07-26 13:43 ` Tassilo Horn
2013-07-26 15:26 ` Eric Abrahamsen
2013-07-26 16:56 ` Tassilo Horn
2013-07-27 7:08 ` Eric Abrahamsen
2013-07-26 17:40 ` N. Raghavendra
2013-07-27 8:56 ` Tassilo Horn
2013-07-27 9:19 ` N. Raghavendra
2013-07-29 6:53 ` Tassilo Horn
2013-07-29 7:42 ` N. Raghavendra
2013-07-28 7:09 ` N. Raghavendra
2013-07-28 8:03 ` Michael Heerdegen
2013-07-28 9:50 ` N. Raghavendra
2013-07-28 12:45 ` Michael Heerdegen
2013-07-28 16:17 ` N. Raghavendra
2013-07-30 7:05 ` Tassilo Horn
2013-07-30 7:24 ` Eric Abrahamsen
2013-07-30 8:01 ` Tassilo Horn [this message]
2013-07-30 10:53 ` Eric Abrahamsen
2013-07-29 5:16 ` N. Raghavendra
2013-07-30 8:07 ` Tassilo Horn
2013-07-30 11:00 ` N. Raghavendra
2013-07-30 12:33 ` Tassilo Horn
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=87hafccw7z.fsf@thinkpad.tsdh.org \
--to=tsdh@gnu.org \
--cc=help-gnu-emacs@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.