From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: "Juan José García Ripoll" <juanjose.garciaripoll@gmail.com>
Cc: 46019-done@debbugs.gnu.org
Subject: bug#46019: 27.1.90; gnus-group-list improperly sorted, drops meaningful group
Date: Sun, 24 Jan 2021 10:11:58 -0800 [thread overview]
Message-ID: <877do25hn5.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <877do67xpb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 21 Jan 2021 14:05:20 -0800")
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Juan José García Ripoll <juanjose.garciaripoll@gmail.com> writes:
>
>> The problem:
>>
>> - On a running Gnus instance, the list of groups in gnus-group-list is
>> not properly sorted: dummy.group gets close to the end.
>>
>> Symptoms:
>>
>> - As a result, the first group in the list is never shown, except when
>> going to the server list
>>
>> Steps to reproduce:
>>
>> In my site, a simple configuration to poll an IMAP server shows the
>> problem. This configuration is stored in launcher.el and ran with
>> "emacs -Q -l launcher.el"
>>
>> (require 'gnus)
>> ;; Passwords for my server
>> (setq auth-sources '("~/OneDrive/Library/dot.authinfo.gpg"))
>> (epg-find-configuration 'OpenPGP)
>> ;; Save configuration elsewhere, not to clobber my system
>> (setq gnus-directory "~/tmp/")
>> (setq gnus-startup-file (expand-file-name ".newsrc" gnus-directory))
>> (setq gnus-select-method '(nnnil ""))
>> (setq gnus-secondary-select-methods
>> '((nnimap "work"
>> (nnimap-address "work.imap.server.com")
>> (nnimap-server-port 993)
>> (nnimap-stream ssl)
>> (nnimap-fetch-partial-articles t))))
>> (gnus)
>> (print gnus-group-list)
>>
>> What happens:
>>
>> - Emacs outputs a list of groups that begins with "nnimap+work:Trash",
>> with dummy.group close to the end
>>
>> ("nnimap+work:Trash" "nnimap+work:Archive" ... "dummy.group" "nndraft:drafts")
>>
>> - When pressing 'L' to get the list of groups, Trash is removed, due to
>> the code in gnus-group-prepare-flat
>>
>> (defun gnus-group-prepare-flat (level &optional predicate lowest regexp)
>> ...
>> ;; List living groups, according to order in `gnus-group-list'.
>> (dolist (g (cdr gnus-group-list))
>> (setq info (gnus-get-info g)
>> group (gnus-info-group info)
>>
>> What should happen:
>>
>> - The list of groups should remain sorted, with dummy.group at the
>> beginning
>
> This looks like a fairly straightforward error on my part (obviously at
> some point I thought the NEXT argument meant "insert after this"), but
> just to make sure I've got the right end of the stick -- does this only
> happen once, during group subscription? Or does the group stay missing
> across Gnus restarts.
>
> Probably the best thing to do would be just to get rid of the
> requirement to have a dummy group at all...
I've pushed a fix for this, and am closing the bug for now. If there's
still a problem here, please re-open.
Thanks,
Eric
prev parent reply other threads:[~2021-01-24 18:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-21 13:30 bug#46019: 27.1.90; gnus-group-list improperly sorted, drops meaningful group Juan José García Ripoll
2021-01-21 16:42 ` Eric Abrahamsen
2021-01-21 22:05 ` Eric Abrahamsen
2021-01-24 18:11 ` Eric Abrahamsen [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877do25hn5.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=46019-done@debbugs.gnu.org \
--cc=juanjose.garciaripoll@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).