unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 60078@debbugs.gnu.org
Cc: bjorn.bidar@thaodan.de, kuba@kubajecminek.cz
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	[thread overview]
Message-ID: <87wmqvg8tr.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <875xygrtmt.fsf@kubajecminek.cz> ("Jakub Ječmínek via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Thu, 22 Feb 2024 23:01:18 +0000")

Jakub Ječmínek via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> Björn Bidar <bjorn.bidar@thaodan.de> 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’t 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örn, 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 ‘.newsrc’ file, but isn’t known to the server
> (i.e., it isn’t in the active file), is a _bogus group_.  This means
> that the group probably doesn’t 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örn'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örn 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...





  reply	other threads:[~2024-02-23  3:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-14 22:55 bug#60078: 30.0.50; Gnus: Can't remove groups of select methods that don't exist anymore Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-22 23:01 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-23  3:26   ` Eric Abrahamsen [this message]
2024-02-23  9:22     ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-23 16:12       ` Eric Abrahamsen
2024-04-01 21:10 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-11  3:38   ` Eric Abrahamsen
2024-05-12 22:08     ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14  0:55       ` Eric Abrahamsen
2024-05-14 20:42         ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-16 17:02           ` Eric Abrahamsen
2024-05-16 19:53             ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-17  2:55               ` Eric Abrahamsen
2024-05-17 20:48                 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-21 22:48                   ` 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

  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=87wmqvg8tr.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=60078@debbugs.gnu.org \
    --cc=bjorn.bidar@thaodan.de \
    --cc=kuba@kubajecminek.cz \
    /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).