all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 60078@debbugs.gnu.org, "Björn Bidar" <bjorn.bidar@thaodan.de>
Subject: bug#60078: 30.0.50; Gnus: Can't remove groups of select methods that don't exist anymore
Date: Sun, 12 May 2024 22:08:40 +0000	[thread overview]
Message-ID: <87ttj2isyj.fsf@kubajecminek.cz> (raw)
In-Reply-To: <878r0hauhl.fsf@ericabrahamsen.net>

Hello Eric, thanks for looking into it once again.

"Eric Abrahamsen" <eric@ericabrahamsen.net> writes:

> So it looks like there's multiple things going on here. First of all,
> the check for bogus groups explicitly excludes secondary select methods.
> Why I do not know, but it's been that way since 2004.

I believe that this is a bug. The documentation says that the `bogus'
group is such that exists in the `.newsrc' file, but isn’t known to the
server (i.e., it isn’t in the active file).

So it must not be active and must not be foreign. But the definition of
foreign group in `gnus-check-bogus-newsgroups' is different from what
was defined by Lars in 1997:

(defun gnus-group-foreign-p (group)
  "Say whether a group is foreign or not."
  (and (not (gnus-group-native-p group))
       (not (gnus-group-secondary-p group))))

We should use this predicate in `gnus-check-bogus-newsgroups' which
fixes the bug we hit along the way (different behaviour between primary
(native) and secondary select methods).

What do you think?

From a7141acb5361be1c34775bd73434889018f0e9ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Je=C4=8Dm=C3=ADnek?= <kuba@kubajecminek.cz>
Date: Sun, 12 May 2024 23:58:22 +0200
Subject: [PATCH] Fix foreign group predicate in gnus-check-bogus-newsgroups

* lisp/gnus/gnus-start.el (gnus-check-bogus-newsgroups): Use correct
predicate for foreign groups.
---
 lisp/gnus/gnus-start.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 05ad4303b5c..b01551d8e22 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1368,9 +1368,7 @@ gnus-check-bogus-newsgroups
 	(setq info (pop newsrc)
 	      group (gnus-info-group info))
 	(unless (or (gnus-active group)	; Active
-		    (and (gnus-info-method info)
-			 (not (gnus-secondary-method-p
-			       (gnus-info-method info))))) ; Foreign
+                    (gnus-group-foreign-p group)) ; Foreign
 	  ;; Found a bogus newsgroup.
 	  (push group bogus)))
       (if confirm
-- 
2.34.1


Best

-- 
Kuba Ječmínek (http://kubajecminek.cz)






  reply	other threads:[~2024-05-12 22:08 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
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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttj2isyj.fsf@kubajecminek.cz \
    --to=bug-gnu-emacs@gnu.org \
    --cc=60078@debbugs.gnu.org \
    --cc=bjorn.bidar@thaodan.de \
    --cc=eric@ericabrahamsen.net \
    --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 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.