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


View this message in rfc822 format

From: Michael Welsh Duggan <mwd <at> md5i.com>
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Cc: Michael Welsh Duggan <mwd <at> md5i.com>, Emilia Blåsten <emilia.blasten <at> iki.fi>, 53755 <at> debbugs.gnu.org
Subject: bug#53755: 27.2; C-u M-x gnus-summary-sort-by-most-recent-number / -date not ordering threads as expected
Date: Thu, 03 Feb 2022 22:33:00 -0500
[Message part 1 (text/plain, inline)]
Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:

> Michael Welsh Duggan <mwd <at> md5i.com> writes:
>
>> This may be related to Bug #18156.
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18156
>>
>> I have patched my local gnus to allow sorting threads by newest message.
>
> Quoting your use-case:
>
>>                                                                     Here
>> is my use case:  I want to sort the threads in my summary buffer,
>> post-gathering, by the date of the most recent article in the thread.
>> If threads (not the articles in threads) are sorted before they are
>> gathered, this seems less than possible.
>
> I think I filed more or less the same bug (bug#42334), with more or less
> the same conclusion?
>
> Lars suggested a solution before wontfixing it, but I never got around
> to implementing it.  How does your local patch work?

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)))

Patch follows:

[Message part 2 (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Michael Welsh Duggan
(md5i <at> md5i.com)

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.