From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: "Juan José García Ripoll" <juanjose.garciaripoll@gmail.com>
Cc: 46019@debbugs.gnu.org
Subject: bug#46019: 27.1.90; gnus-group-list improperly sorted, drops meaningful group
Date: Thu, 21 Jan 2021 14:05:20 -0800 [thread overview]
Message-ID: <877do67xpb.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <864kjav2lw.fsf@csic.es> ("Juan José García Ripoll"'s message of "Thu, 21 Jan 2021 14:30:51 +0100")
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...
next prev parent reply other threads:[~2021-01-21 22:05 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 [this message]
2021-01-24 18:11 ` Eric Abrahamsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877do67xpb.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=46019@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.