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#60078: 30.0.50; Gnus: Can't remove groups of select methods that don't exist anymore Date: Thu, 22 Feb 2024 19:26:08 -0800 Message-ID: <87wmqvg8tr.fsf@ericabrahamsen.net> References: <875yedvblv.fsf@thaodan.de> <875xygrtmt.fsf@kubajecminek.cz> 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="5650"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: bjorn.bidar@thaodan.de, kuba@kubajecminek.cz To: 60078@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 23 04:27:08 2024 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 1rdMDL-0001G4-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Feb 2024 04:27:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdMCu-00055X-Jn; Thu, 22 Feb 2024 22:26:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdMCt-00055N-QO for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2024 22:26:39 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdMCt-00051v-GM for bug-gnu-emacs@gnu.org; Thu, 22 Feb 2024 22:26:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdMDG-0006Rh-9W; Thu, 22 Feb 2024 22:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 23 Feb 2024 03:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60078 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-To: Jakub =?UTF-8?Q?Je=C4=8Dm=C3=ADnek?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 60078@debbugs.gnu.org, =?UTF-8?Q?Bj=C3=B6rn?= Bidar , Jakub =?UTF-8?Q?Je=C4=8Dm=C3=ADnek?= Original-Received: via spool by 60078-submit@debbugs.gnu.org id=B60078.170865880324725 (code B ref 60078); Fri, 23 Feb 2024 03:27:02 +0000 Original-Received: (at 60078) by debbugs.gnu.org; 23 Feb 2024 03:26:43 +0000 Original-Received: from localhost ([127.0.0.1]:57374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdMCw-0006Qi-BW for submit@debbugs.gnu.org; Thu, 22 Feb 2024 22:26:43 -0500 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:50266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdMCt-0006QL-OC for 60078@debbugs.gnu.org; Thu, 22 Feb 2024 22:26:40 -0500 Original-Received: from localhost (71-212-21-65.tukw.qwest.net [71.212.21.65]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 9CF08FA0B2; Fri, 23 Feb 2024 03:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1708658770; bh=T3ux9S2pTccwtl8//76iijY8suzFWLHNy2J38ePJhtU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dnJ8HFqs1LMv9j9f0KLEjXksKio59k7k45Z2+Bp7xCqWGvU2wUMS/+YV+f//GbUAz OS308P+P0GCTcrQkfUwPKtMJsCUi6W7vVXQ9ScUOiIMNjFtY1vQnIFQrJWcDW1Nsoo c7DNcrB9uTPr5/oHrPdHiG/xmUgxLiC6qvUEcpXs= In-Reply-To: <875xygrtmt.fsf@kubajecminek.cz> ("Jakub =?UTF-8?Q?Je=C4=8Dm=C3=ADnek?= via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Thu, 22 Feb 2024 23:01:18 +0000") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280480 Archived-At: Jakub Je=C4=8Dm=C3=ADnek via "Bug reports for GNU Emacs, the Swiss army kni= fe of text editors" writes: > Bj=C3=B6rn Bidar writes: > >> Steps to reproduce: >> 1. Add select method >> 2. Have a group either created before or in Gnus >> 3. Launch Gnus >> 4. Quit Gnus >> 5. Remove select method >> 6. Relaunch Gnus >> 7. execute gnus-group-check-bogus-groups or try to delete a group in >> Gnus >> >> Result: >> gnus-group-expunge-group: nil does not support expunging >> gnus-get-function: Trying to require a method that doesn=E2=80=99t exist= [2 >> times] >> >> Expected result: >> Groups gone, diagnostic message if needed. >> >> Either Gnus doesn't find bogus groups for no longer existing select >> methods or can't delete them. > > Hello Bj=C3=B6rn, thanks for the bug report. I believe that the "correct"= way > to deal with such groups is simply to kill them (C-k in *Group* buffer). > > The documenatation says the following about the bogus group: > > A group that exists in the =E2=80=98.newsrc=E2=80=99 file, but isn=E2=80= =99t known to the server > (i.e., it isn=E2=80=99t in the active file), is a _bogus group_. This me= ans > that the group probably doesn=E2=80=99t exist (any more). > > So basically if you remove the select method corresponding to a > particular group then Gnus is not able to check for bogus groups. My understanding of checking for bogus group is that it should handle precisely these circumstances: removing groups that no longer have a corresponding select method. I tried Bj=C3=B6rn's recipe in the gnus-mock package, which is the closest thing I've got to a uncustomized Gnus. Replacing the principle select method (previously nnmaildir) with nnnil, restarting Gnus, and running "b", correctly prompted me to remove the three groups that had previously belonged to the nnmaildir server. I'm guessing that Bj=C3=B6rn has some expunging-related customization that attempts to expunge messages early on, maybe during the active-file reading that happens as the first step of checking for bogus groups? Gnus is trying to get the nonexistent select method to expunge its articles before it has a chance to remove the groups. Just a guess...