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: Sun, 24 Jan 2021 10:11:58 -0800 Message-ID: <877do25hn5.fsf@ericabrahamsen.net> References: <864kjav2lw.fsf@csic.es> <877do67xpb.fsf@ericabrahamsen.net> 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="30654"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46019-done@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 Sun Jan 24 19:13:13 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 1l3jst-0007nt-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jan 2021 19:13:11 +0100 Original-Received: from localhost ([::1]:35934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3jss-00064K-D6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jan 2021 13:13:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3jsk-00060p-HG for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 13:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3jsk-00044q-92 for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 13:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3jsk-0000ls-5K for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2021 13:13:02 -0500 Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jan 2021 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46019 X-GNU-PR-Package: emacs Mail-Followup-To: 46019@debbugs.gnu.org, eric@ericabrahamsen.net, juanjose.garciaripoll@gmail.com Original-Received: via spool by 46019-done@debbugs.gnu.org id=D46019.16115119312901 (code D ref 46019); Sun, 24 Jan 2021 18:13:01 +0000 Original-Received: (at 46019-done) by debbugs.gnu.org; 24 Jan 2021 18:12:11 +0000 Original-Received: from localhost ([127.0.0.1]:37219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3jru-0000kj-O2 for submit@debbugs.gnu.org; Sun, 24 Jan 2021 13:12:10 -0500 Original-Received: from ericabrahamsen.net ([52.70.2.18]:54588 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3jrs-0000k7-9x for 46019-done@debbugs.gnu.org; Sun, 24 Jan 2021 13:12:09 -0500 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 10345FA07E; Sun, 24 Jan 2021 18:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1611511921; bh=FaCZvVhZgl7x+wEt6T1alZkuMMo/8nbCOh9R9r7l5Eg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cEPIaI2YGM8u0U3ruOukY0nQ5CBLfyDPYBRGw0DFDNCj9CoGGPPNl1QeGR90kKMgs 4mFT28XlXiYEckLPAYDXcpv5fovryHH31skwvgyv9r9Y9vYZchgzO1/QCuq3P9qolM vVS4n3fTz4xdOKBv9pG2rz+r3L8GF2upYaSRoUes= In-Reply-To: <877do67xpb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 21 Jan 2021 14:05:20 -0800") 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:198509 Archived-At: Eric Abrahamsen writes: > Juan Jos=C3=A9 Garc=C3=ADa Ripoll write= s: > >> 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:dr= afts") >> >> - 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