From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simon Leinen Newsgroups: gmane.emacs.bugs Subject: bug#67526: 30.0.50; Regression: gnus-group-prev-group fails to move to first group Date: Wed, 29 Nov 2023 16:50:32 +0100 Message-ID: References: <83h6l47l9j.fsf@gnu.org> <87il5koaj0.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38008"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 67526@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 29 16:51:11 2023 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 1r8MqE-0009g0-9j for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Nov 2023 16:51:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8Mq0-0007TM-JT; Wed, 29 Nov 2023 10:50:56 -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 1r8Mpz-0007Su-Lz for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 10:50:55 -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 1r8Mpy-0001vf-VR for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 10:50:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8Mq6-0005W7-GG for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 10:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Simon Leinen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2023 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67526 X-GNU-PR-Package: emacs Original-Received: via spool by 67526-submit@debbugs.gnu.org id=B67526.170127304621177 (code B ref 67526); Wed, 29 Nov 2023 15:51:02 +0000 Original-Received: (at 67526) by debbugs.gnu.org; 29 Nov 2023 15:50:46 +0000 Original-Received: from localhost ([127.0.0.1]:50775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8Mpp-0005VV-K1 for submit@debbugs.gnu.org; Wed, 29 Nov 2023 10:50:45 -0500 Original-Received: from mx4.switch.ch ([85.235.88.35]:58546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8Mpm-0005VH-Tn for 67526@debbugs.gnu.org; Wed, 29 Nov 2023 10:50:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=switch.ch; l=1387; s=selector1; t=1701273035; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=RbSSpIa9sK5uZjAxrOq83UtXiDfPQSkq+uaNroWffyg=; b=AqvK6IN7sR3iJK1kfCfCble6BETXDHz6sGpoudV9RGcZ1cTL32O7NOd+ 8fgwuJZUZR5mwJ0biuBE54WvC7Y+xwdj+2g3qNQEAv0ErNQvB9rbQSSiY J2eYVL8bGf1Sxa446Rr8e4g3lSa8mJUkUtaZxG13sUpGvDtTCmYmopb6c 3IoGrDNlXhoRWBX7HKfbQY8zgBncQaN/dEHd+7GLL7LdLyk5EusZ/2uIq D/Hk+JmsV3WT7NNKcNN977Hh8HsJLzwvvV38uqVzVWEiK/QjXDQg7ph/R fXSiF0yTMTBQTvKjTZ61D2u2iuV+zM979R23/4V+0mP9YzLxaAtkeoS2U g==; X-IronPort-MAIL-FROM: simon.leinen@switch.ch X-IronPort-RCPT-TO: 67526@debbugs.gnu.org, eliz@gnu.org, eric@ericabrahamsen.net X-IronPort-AV: E=Sophos;i="6.04,235,1695679200"; d="scan'208";a="5879897" Original-Received: from unknown (HELO SWH-S04-EXC2.swd.switch.ch) ([172.16.60.12]) by mx4int.switch.ch with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 16:50:33 +0100 Original-Received: from macsl (172.16.60.33) by SWH-S04-EXC2.swd.switch.ch (172.16.60.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 29 Nov 2023 16:50:32 +0100 In-Reply-To: <87il5koaj0.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 29 Nov 2023 07:16:03 -0800") X-Originating-IP: [172.16.60.33] X-ClientProxiedBy: SWH-S05-EXC3.swd.switch.ch (172.16.60.14) To SWH-S04-EXC2.swd.switch.ch (172.16.60.12) 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:275245 Archived-At: Dear Eric, thanks for looking at this! > I'm not able to reproduce this, with or without topic-mode. Is there > anything special about the level of the first or the second group, and > `gnus-level-subscribed'? I can't see anything else that might influence > behavior here... How do I find out whether anything is special about the level of those groups? For me, gnus-topic-mode is nil gnus-level-subscribed is 5 The top three lines of my newsgroup list look like this: 193: nnimap+mail.switch.ch:INBOX 19: nnimap+mail.switch.ch:switch/network 27: nnimap+mail.switch.ch:net/freertr Reproducing the issue is as easy as typing "n" and then "p". The cursor will be stuck on the second line. I can try narrowing this case, but it's hard for me to get gnus working again from emacs -q :-) I do note that the issue goes away when I revert a bit of your change, as follows. I haven't found out *why* that is necessary to get the old behavior back... diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 9a1a6f9b27d..2f81ea96210 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -1758,7 +1758,7 @@ gnus-group-search-forward (unless first-too (forward-line way)) (while (and - (not (if backward (bobp) (eobp))) + (not (endp)) (not (setq found (and