Subject: 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 13:17:05 -0800

On 02/07/22 18:42 PM, Andreas Schwab wrote:
> On Feb 07 2022, Eric Abrahamsen wrote:
>
>> 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.
>
> It doesn't?  I get erroneous behaviour without this.

It shouldn't -- if you're not using topic mode, the group sorting is
drawn from `gnus-group-list'. And when you save->shutdown->restart Gnus,
`gnus-group-list' sorts `gnus-newsrc-alist', which gets written to file,
and on restart it is used to reconstruct the sort order for
`gnus-newsrc-alist'.

Can you tell me what the erroneous behaviour is, and also what "this"
refers to?