From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79015 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with thread sorting Date: Thu, 02 Jun 2011 10:10:03 -0400 Message-ID: <878vtkcojo.fsf@uwo.ca> References: <87hb94f4yk.fsf@micropit.couberia.bzh> <878vtn8hnk.fsf@micropit.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1307023908 7279 80.91.229.12 (2 Jun 2011 14:11:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2011 14:11:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27315@lists.math.uh.edu Thu Jun 02 16:11:44 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QS8ch-0000ON-BV for ding-account@gmane.org; Thu, 02 Jun 2011 16:11:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QS8bV-00029O-JL; Thu, 02 Jun 2011 09:10:29 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QS8bU-00029H-L7 for ding@lists.math.uh.edu; Thu, 02 Jun 2011 09:10:28 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QS8bP-00026k-Bd for ding@lists.math.uh.edu; Thu, 02 Jun 2011 09:10:27 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QS8bM-0000Hf-Bc for ding@gnus.org; Thu, 02 Jun 2011 16:10:20 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QS8bK-00084A-UX for ding@gnus.org; Thu, 02 Jun 2011 16:10:18 +0200 Original-Received: from cool.math.ist.utl.pt ([193.136.196.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Jun 2011 16:10:18 +0200 Original-Received: from jdc by cool.math.ist.utl.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Jun 2011 16:10:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cool.math.ist.utl.pt User-Agent: Gnus/5.110012 (No Gnus v0.12) Emacs/23.1 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:vQsWJgT7WUApJneJuREZ/vpw/U4= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79015 Archived-At: Lars Magne Ingebrigtsen writes: > pmlists@free.fr (Peter Münster) writes: > >> I've already tried that, but it doesn't work. Here my setup: >> >> (defun my-sort-gathered (h1 h2) >> (gnus-thread-sort-by-most-recent-date h2 h1)) >> >> (setq >> gnus-sort-gathered-threads-function 'my-sort-gathered > > I tried playing around with this a bit. If I reverse the order of h1 > and h2 in that function, the order of the gathered threads are > reversed. So it's doing something. But is it doing things in reverse > order? What do you think about my theory from another message in this thread? I have included it below: Dan Christensen wrote: > I've also noticed bad sorting behaviour, and it might be the same issue > you are seeing. Like you, I sort threads by the most recent date, and > in my Inbox I often have every second article in a conversation (the > messages I sent are stored in my Sent group). This causes Gnus to > gather the articles together rather than treat them as one thread. I > think what is happening is that this gathering is done *after* the > threads are sorted. If I am right, then the solution is to form > threads, gather them together to make "virtual" threads, and then sort > those. However, I think the sorting code assumes that all threads are > trees, so false roots would be needed. (Maybe false roots are always > created behind the scenes no matter how gnus-summary-make-false-root is > set?) > > I'm swamped right now, so I won't be able to come up with a patch, but > maybe the above is enough to help someone else fix this. > > Dan