Subject: Re: bug#53352: 29.0.50; IMAP INBOX not refreshing using `gnus-group-get-new-news'

From: Eric Abrahamsen <[email-masked]>
Date: Mon, 07 Feb 2022 08:50:34 -0800

On 02/07/22 11:49 AM, Andreas Schwab wrote:
> On Jan 24 2022, Eric Abrahamsen wrote:
>
>> diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
>> index 2cf11fb12f..dd9c277805 100644
>> --- a/lisp/gnus/gnus-start.el
>> +++ b/lisp/gnus/gnus-start.el
>> @@ -2867,12 +2867,6 @@ gnus-gnus-to-quick-newsrc-format
>>        (princ "(setq gnus-newsrc-file-version ")
>>        (princ (gnus-prin1-to-string gnus-version))
>>        (princ ")\n"))
>> -    ;; Sort `gnus-newsrc-alist' according to order in
>> -    ;; `gnus-group-list'.
>> -    (setq gnus-newsrc-alist
>> -	  (mapcar (lambda (g)
>> -		    (nth 1 (gethash g gnus-newsrc-hashtb)))
>> -		  (delete "dummy.group" gnus-group-list)))
>
> But the sorting should still be permanent, shoudn't it?

It really doesn't matter, at this point. `gnus-group-list' is the source
of authority on sorting (if the user isn't using topic mode), and
`gnus-newsrc-hashtb' is more and more just used for persisting to disk.
We want to save the sort order on shutdown, but during a Gnus session it
doesn't matter.