From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Sorting with threads in Gnus Date: Wed, 24 Jul 2013 15:15:59 +0200 Message-ID: <87vc40drow.fsf@thinkpad.tsdh.org> References: <87d2q8qy0h.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374671797 16303 80.91.229.3 (24 Jul 2013 13:16:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2013 13:16:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 24 15:16:39 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V1yvk-0003k6-L8 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jul 2013 15:16:36 +0200 Original-Received: from localhost ([::1]:53016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1yvk-0002Pe-3e for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jul 2013 09:16:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1yvV-0002N6-Go for help-gnu-emacs@gnu.org; Wed, 24 Jul 2013 09:16:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1yvT-000228-4d for help-gnu-emacs@gnu.org; Wed, 24 Jul 2013 09:16:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1yvS-00021g-U2 for help-gnu-emacs@gnu.org; Wed, 24 Jul 2013 09:16:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V1yvN-0003Fo-Ae for help-gnu-emacs@gnu.org; Wed, 24 Jul 2013 15:16:13 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Jul 2013 15:16:13 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Jul 2013 15:16:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:MOtdmGcEC6+z79AetFWsag3tQLY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92362 Archived-At: Eric Abrahamsen writes: Hi Eric, > Maybe look at `gnus-sort-gathered-threads-function? Here's what I use: > > (setq gnus-thread-sort-functions '(gnus-thread-sort-by-number > gnus-thread-sort-by-most-recent-date) > gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date) Oh, I didn't know that variable. But it still doesn't really help me. What works is --8<---------------cut here---------------start------------->8--- (setq gnus-thread-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--- which sorts threads and subthreads/articles of threads from old to new. Hovever, I'd prefer to sort thread roots first by total score, then by most recent article in the thread, so that at the top of the summary, there's the thread with the highest total score, and if two threads have the same total score, the one with the most recent article is on top. However, as soon as I add `gnus-thread-sort-by-total-score' and `gnus-thread-sort-by-most-recent-date' to `gnus-thread-sort-functions', the sorting inside threads goes wonky as well... Bye, Tassilo