From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18468 Path: news.gmane.org!.POSTED!not-for-mail From: Lars-Johan Liman Newsgroups: gmane.emacs.gnus.user Subject: Sorting threads ... again. Date: Fri, 25 Nov 2016 16:46:54 +0100 Message-ID: <22ziknpno1.fsf@limac.netnod.se> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1480111868 20503 195.159.176.226 (25 Nov 2016 22:11:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2016 22:11:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Nov 25 23:11:04 2016 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAOi0-0003zg-BG for gegu-info-gnus-english@m.gmane.org; Fri, 25 Nov 2016 23:11:04 +0100 Original-Received: from localhost ([::1]:48106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAOi0-0001kB-SQ for gegu-info-gnus-english@m.gmane.org; Fri, 25 Nov 2016 17:11:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAJ5V-0005N8-Bh for info-gnus-english@gnu.org; Fri, 25 Nov 2016 11:10:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAJ5U-0008Gp-AH for info-gnus-english@gnu.org; Fri, 25 Nov 2016 11:10:57 -0500 Original-Received: from mail.cafax.se ([2a00:801:11:53::4]:58128) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cAJ5T-0008DC-RI for info-gnus-english@gnu.org; Fri, 25 Nov 2016 11:10:56 -0500 Original-Received: from limac.netnod.se ([IPv6:2a01:3f0:1:0:129a:ddff:fe5a:d3f8]) by mail.cafax.se (8.15.1/8.15.1) with ESMTPS id uAPFksmT011237 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 25 Nov 2016 16:46:55 +0100 (MET) Original-Received: from limac.netnod.se (localhost [127.0.0.1]) by limac.netnod.se (Postfix) with ESMTP id 6DD6ADFA321 for ; Fri, 25 Nov 2016 16:46:54 +0100 (CET) X-Scanned-By: MIMEDefang 2.71 on IPv6:2a00:801:11:53:0:0:0:4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:801:11:53::4 X-Mailman-Approved-At: Fri, 25 Nov 2016 17:08:52 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18468 Archived-At: Hi! New to the list, but not to GNUS (close to 15 years), and certainly not to Emacs (30+ years - TOPS-20, anyone? ;-). Sorry if this is a FAQ. I often solve most of my problems by Googling, but I've revisited the following one several times over several years, but I still haven't solved it. Call me stupid, I've been called worse things ... ;-) Sorting threads. I'd like to have my summary buffer sorted such that: *) An entire thread is viewed as "one unit". The sorting key for the entire thread unit is the "tail" of the thread - the highest article number in the thread. *) The sorting key for a "loose article" (which is not part of a thread) is its article number. *) Thread units and loose articles are seen equal, and sorted in increasing order (highest article number last), something like this (exaggerated example): ! 1113: [The Boss ] Announcement ! 1114: [My Friend ] Thanks for ... !A 1103: [Foo Bar ] Issue 1 1104: 1115: [Mubbe Mupp ] <--- sorting key 1116: [Customer ] Invitation to ... !A 1101: [Foo Bar ] Issue 2 1102: 1117: [Mubbe Mupp ] <--- sorting key I thought I'd be able to use something like (setq gnus-thread-sort-functions '((not gnus-thread-sort-by-most-recent-number))) ... but it doesn't work. Nor does any other combination of the sorting functions that I've tried. Any ideas? Also note that my groups are sometimes very large. My most frequented group ("inbox-2016") sits at highest index = ~33000, with 12000+ of them being "not deleted", so if there are any size limitations (besides processing time) I need to know about, mentioning them would be welcome. ;-) Trying to read the source code, I see mixed recursion limitations of 5000, but I take them to be "size of ONE thread", not "size of group". Me being wrong on that would explain some behaviour I've seen during my attempts, though ... Best regards, /Liman #------------------------------------------------------------------------- # Lars-Johan Liman, M.Sc. ! E-mail: info-gnus-english@cafax.se # Cafax AB ! HTTP : //www.cafax.se/ # Computer Consultants, Sweden ! Voice : +46 8 - 564 702 30 #-------------------------------------------------------------------------