Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
To: ding@gnus.org
Subject: Re: Problem with thread sorting
Date: Thu, 02 Jun 2011 10:10:03 -0400	[thread overview]
Message-ID: <878vtkcojo.fsf@uwo.ca> (raw)
In-Reply-To: <m31uzeelkt.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> 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




  reply	other threads:[~2011-06-02 14:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09 12:12 Peter Münster
2011-05-12 18:20 ` Dan Christensen
2011-05-30 20:27 ` Lars Magne Ingebrigtsen
2011-05-31  7:15   ` Peter Münster
2011-05-31 19:06     ` Lars Magne Ingebrigtsen
2011-06-02 14:10       ` Dan Christensen [this message]
2011-06-03 22:14         ` Lars Magne Ingebrigtsen
2011-06-03 22:32           ` Peter Münster
2011-06-03 22:50             ` Lars Magne Ingebrigtsen
2011-06-05  0:34               ` Dan Christensen
2011-06-26 10:14                 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vtkcojo.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).