GNU bug report logs - #53755
27.2; C-u M-x gnus-summary-sort-by-most-recent-number / -date not ordering threads as expected

Previous Next

Package: emacs;

Reported by: Emilia Blåsten <emilia.blasten <at> iki.fi>

Date: Thu, 3 Feb 2022 18:39:02 UTC

Severity: normal

Found in version 27.2

Full log


Message #26 received at 53755 <at> debbugs.gnu.org (full text, mbox):

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Emilia Blåsten <emilia.blasten <at> iki.fi>
Cc: Michael Welsh Duggan <mwd <at> md5i.com>, larsi <at> gnus.org, 53755 <at> debbugs.gnu.org
Subject: Re: bug#53755: 27.2; C-u M-x
 gnus-summary-sort-by-most-recent-number / -date not ordering threads as
 expected
Date: Sat, 05 Feb 2022 15:13:04 +0100
[Message part 1 (text/plain, inline)]
Hey Emilia, hey Michael, hey Lars,

Emilia Blåsten <emilia.blasten <at> iki.fi> writes:

> Michael Welsh Duggan <mwd <at> md5i.com> writes:
>
>> I run with the included patch.  In the group for which I care about
>> this, I set the following group parameter:
>>
>>   (gnus-thread-sort-functions
>>      'md5i-thread-sort-by-most-recent-date-reverse)
>>
>> where `md5i-thread-sort-by-most-recent-date-reverse' is defined thusly:
>>
>>     (defun md5i-thread-sort-by-most-recent-date-reverse (h1 h2)
>>       (<= (gnus-thread-latest-date h1) (gnus-thread-latest-date h2)))

Thanks for the patch; I've applied it, and the results are quite
satisfying on my end.  My gnus-thread-sort-functions are configured like
so (cf. bug#42334):

(setq gnus-thread-sort-functions
      '(gnus-thread-sort-by-number
        (not gnus-thread-sort-by-most-recent-date)))

… which /I think/ should be equivalent to your configuration: at first
glance, it seems to me like your custom sort function is equivalent to
(not gnus-thread-sort-by-most-recent-date)?

I'm attaching the summary buffers I get for one of my IMAP folders, with
the current code, and with your patch applied.  I've also tried your
patch with the .mbox from bug#42334, and things also work as expected.

>                             Since this part of the code is very old, I
> do understand that you would hesitate changing it, in which case this
> can be closed from my part.

Now that Michael has blessed us with a patch, I guess I could live with
keeping it applied locally, but I really wonder how useful the current
semantics of gnus-thread-sort-by-most-recent-date are… since… threads
don't end up sorted by date 🙃


[gnus-thread-current.txt (text/plain, attachment)]
[gnus-thread-michael.txt (text/plain, attachment)]
[gnus-thread-recent-date.png (image/png, attachment)]

This bug report was last modified 3 years and 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.