From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#46019: 27.1.90; gnus-group-list improperly sorted, drops meaningful group Date: Thu, 21 Jan 2021 14:05:20 -0800 Message-ID: <877do67xpb.fsf@ericabrahamsen.net> References: <864kjav2lw.fsf@csic.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46019@debbugs.gnu.org To: Juan =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?Garc=C3=ADa?= Ripoll Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 21 23:06:35 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2i67-0003nV-4H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jan 2021 23:06:35 +0100 Original-Received: from localhost ([::1]:45424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2i66-00032w-4i for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jan 2021 17:06:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2i5a-0002zT-5R for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2021 17:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2i5Z-0007KA-TT for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2021 17:06:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l2i5Z-0003NS-NM for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2021 17:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jan 2021 22:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46019 X-GNU-PR-Package: emacs Original-Received: via spool by 46019-submit@debbugs.gnu.org id=B46019.161126673112940 (code B ref 46019); Thu, 21 Jan 2021 22:06:01 +0000 Original-Received: (at 46019) by debbugs.gnu.org; 21 Jan 2021 22:05:31 +0000 Original-Received: from localhost ([127.0.0.1]:59595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2i54-0003Me-Rt for submit@debbugs.gnu.org; Thu, 21 Jan 2021 17:05:31 -0500 Original-Received: from ericabrahamsen.net ([52.70.2.18]:33900 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2i52-0003MO-B0 for 46019@debbugs.gnu.org; Thu, 21 Jan 2021 17:05:29 -0500 Original-Received: from localhost (97-113-33-130.tukw.qwest.net [97.113.33.130]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 25B9CFA1FC; Thu, 21 Jan 2021 22:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1611266722; bh=WuEQM7efvSlYmh0cRHpSvHRQrsXPq1qWugWBNKbHiT0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=K4MDdBBgihWvxAkig4EW7wM53akyMSptMWK7VBFg0Xbxk5Och8byr4M5IHfU4Tjiv VUUIu+291d9ZDsNGDAUwhsr1qkQo6gDf3S8/zoydqW533NKKDrRDpNWseqxITXlBvH XS+7V830MOLnjFoCIt66wqYulNmZ4h0dP8iW9U1k= In-Reply-To: <864kjav2lw.fsf@csic.es> ("Juan =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?Garc=C3=ADa?= Ripoll"'s message of "Thu, 21 Jan 2021 14:30:51 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198352 Archived-At: Juan Jos=C3=A9 Garc=C3=ADa Ripoll 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:dra= fts") > > - 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...