From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62845: 29.0.90; nntp-with-open-group-function kills current buffer on timeout Date: Sat, 06 May 2023 09:31:58 +0300 Message-ID: <83jzxmgech.fsf@gnu.org> References: <87a5zauofc.fsf@igel.home> <83pm85ej9b.fsf@gnu.org> <87edo619wx.fsf@igel.home> <87leieqawq.fsf@ericabrahamsen.net> <83r0s0nq93.fsf@gnu.org> <87354axr54.fsf@ericabrahamsen.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@linux-m68k.org, 62845@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 06 08:32:27 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 1pvBT0-0000r7-7T for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 May 2023 08:32:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvBSh-0004Cj-C8; Sat, 06 May 2023 02:32:07 -0400 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 1pvBSd-0004C9-14 for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 02:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvBSc-0003Rq-No for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 02:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvBSc-0002HQ-D9 for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 02:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 May 2023 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62845 X-GNU-PR-Package: emacs Original-Received: via spool by 62845-submit@debbugs.gnu.org id=B62845.16833546758707 (code B ref 62845); Sat, 06 May 2023 06:32:02 +0000 Original-Received: (at 62845) by debbugs.gnu.org; 6 May 2023 06:31:15 +0000 Original-Received: from localhost ([127.0.0.1]:58066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvBRq-0002GN-Re for submit@debbugs.gnu.org; Sat, 06 May 2023 02:31:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvBRm-0002G5-3f for 62845@debbugs.gnu.org; Sat, 06 May 2023 02:31:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvBRf-0003MN-CX; Sat, 06 May 2023 02:31:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U81wkqD1SiJ4TfkBpGHchwVBT3FLw1aahTf3+t/UrnQ=; b=E5ZpEz+UVlSU wKG0lY9yqYyG6tQjMlgKuvm2ER7nt/JV7aUH3xem4th+woJLPe/ZrK5ywRfTBUbJ6EbkMX1onyJbB DmAWvPhY7cYm/bOWqWPl1PtQKEeRqak0uJg9DRX1PfQn5WZDW9MZTEPR0efUS7jf9cX4MH/Bpc/SG qCOVhzu/6Q9y+FOUd7EcDqTG+RD9Kb+WFp1p3gOph7ZNddrAyhDlfRhOJ6retFL7+hxTvOip4GzrD njlbwilSZBYrCoLqqZFKZrPS0X9DzJqHpiPWpgMUo09joMcx1HX32CKtntqX2c0HpT8XI11XEM2kv WSk8jG8jnQVYzKKhx8giYg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvBRe-0005N7-Rk; Sat, 06 May 2023 02:31:03 -0400 In-Reply-To: <87354axr54.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Fri, 05 May 2023 17:03:35 -0700) 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:261161 Archived-At: > From: Eric Abrahamsen > Cc: schwab@linux-m68k.org, 62845@debbugs.gnu.org > Date: Fri, 05 May 2023 17:03:35 -0700 > > `nntp-report' used to raise an error in this case, so it didn't matter > what happened afterwards. That error would derail the entire process of > Gnus checking for news/mail, so I took it out so that other servers > could continue doing their work even if this one had lost its > connection. > > But then the current buffer of `with-current-buffer` is gone, which as > Andreas notes dumps us in the most-recently-used buffer, which could be > anything. The `nnheader-strip-cr' acts on that buffer, and terrible > things result. > > Other code in this library checks if the timer has killed the process > buffer in the meantime. There's probably a safe solution in here > somewhere, but if you're looking for a reliable regression fix to > include in Emacs 29, it's probably best just to revert 032969e8c65. That > behavior is annoying, but at least not buggy. > > WDYT? Fine with me, but what is the plan for master? If you can show the proposed solution for master, we could then try to figure out if it is safe enough for emacs-29 as well. But if it will take a significant time to come up with such a solution for master, then let's revert on emacs-29 for now. Thanks.