From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Sorting with threads in Gnus Date: Fri, 26 Jul 2013 12:37:10 +0800 Message-ID: <871u6mlyx5.fsf@ericabrahamsen.net> References: <87d2q8qy0h.fsf@ericabrahamsen.net> <87vc40drow.fsf@thinkpad.tsdh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374813425 17593 80.91.229.3 (26 Jul 2013 04:37:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jul 2013 04:37:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 26 06:37:06 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 1V2Zm4-0006PD-Hy for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jul 2013 06:37:04 +0200 Original-Received: from localhost ([::1]:58901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2Zm4-0002ep-4X for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jul 2013 00:37:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2Zls-0002eU-N5 for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 00:36:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2Zln-0005Mp-Lk for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 00:36:52 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2Zln-0005MX-Fu for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 00:36:47 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V2Zlm-000657-9X for help-gnu-emacs@gnu.org; Fri, 26 Jul 2013 06:36:46 +0200 Original-Received: from 114.250.132.119 ([114.250.132.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Jul 2013 06:36:46 +0200 Original-Received: from eric by 114.250.132.119 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Jul 2013 06:36:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.132.119 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:18bLbySnM8LN1mrkNxY9rZmaQT0= 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:92435 Archived-At: Tassilo Horn writes: > 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 > > (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) > > 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... I doubt I'll be able to help -- I don't use scoring, and most of my gnus configurations seem to involve some degree of magical thinking. Just for clarity, your desired setup, that goes "wonky", would look like this: (setq gnus-thread-sort-functions '(gnus-thread-sort-by-total-score gnus-thread-sort-by-most-recent-date) gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date) Is that right? So it's the 'gnus-thread-sort-by-date effect inside the threads themselves that's going wrong? Wonky how? E