From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21462: 25.0.50; Gnus thread gathering and sorting inverted Date: Sun, 07 Feb 2016 16:53:14 +1100 Message-ID: <87si15awxh.fsf@gnus.org> References: <878u8cdfmt.fsf@md5i.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454824471 15964 80.91.229.3 (7 Feb 2016 05:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 05:54:31 +0000 (UTC) Cc: 21462@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 06:54:12 2016 Return-path: Envelope-to: geb-bug-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 1aSIIW-00078R-Hg for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 06:54:12 +0100 Original-Received: from localhost ([::1]:59869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSIIV-0003zk-LI for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Feb 2016 00:54:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSIIR-0003zZ-9c for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 00:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSIIM-0000lg-9i for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 00:54:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSIIM-0000lc-5r for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2016 00:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSIIM-0000kC-0y; Sun, 07 Feb 2016 00:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 07 Feb 2016 05:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21462 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 21462-submit@debbugs.gnu.org id=B21462.14548244222819 (code B ref 21462); Sun, 07 Feb 2016 05:54:01 +0000 Original-Received: (at 21462) by debbugs.gnu.org; 7 Feb 2016 05:53:42 +0000 Original-Received: from localhost ([127.0.0.1]:36326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSII2-0000jN-C3 for submit@debbugs.gnu.org; Sun, 07 Feb 2016 00:53:42 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:46735) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSII0-0000jC-D1 for 21462@debbugs.gnu.org; Sun, 07 Feb 2016 00:53:40 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aSIHe-0005et-AF; Sun, 07 Feb 2016 06:53:19 +0100 In-Reply-To: <878u8cdfmt.fsf@md5i.com> (Michael Welsh Duggan's message of "Fri, 11 Sep 2015 13:34:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aSIHe-0005et-AF MailScanner-NULL-Check: 1455429199.03771@c6KAeBPK4nAjEeYxGYMj/Q X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112602 Archived-At: Michael Welsh Duggan writes: > I have been attempting to implement the following use case: > > I have a gnus group that receives messages with subjects that look sort > of like this: > > Some title, part 1, by X > Some title, part 2, by X > Some other title, part 32, by Y > > I gather these into threads by title using my own simplification > function which I add to `gnus-simplify-subject-functions' in this > group. I also set `gnus-thread-hide-subtree' to `t' in this group, so > each title takes up one Summary line. > > I then want to sort these threads by the *latest* message in the > thread. Thus, when a new part is received, the entire thread shows up > as "newer". To do this, I created by own function to set > `gnus-thread-sort-functions' to. This looks like this: > > (defun md5i-thread-sort-by-most-recent-date-reverse (h1 h2) > (<= (gnus-thread-latest-date h1) (gnus-thread-latest-date h2))) > > Unfortunately, this fails in many cases due to the fact that > `gnus-summary-prepare' gathers thread after sorting threads. In my case > I need the reverse, and I think that the reverse always makes sense. I > have a patch which does this, and has been working for me for half a > year or so. I suggest you add this or an equivalent change to Gnus. > Feel free to rewrite this patch completely. I wrote it long enough ago > that I do not remember why I needed to create `gnus-make-threaded-sort'. There is a separater `gnus-sort-gathered-threads-function' -- doesn't it do what you want it to? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no