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#70579: 30.0.50; gnus: Wrong unread count in the Group buffer Date: Thu, 09 May 2024 21:00:11 -0700 Message-ID: <87wmo2qptg.fsf@ericabrahamsen.net> References: <87ttjo7q98.fsf@outlook.com> <87sez83foa.fsf@ericabrahamsen.net> <864jb78nbd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2202"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70579@debbugs.gnu.org, jimjoe@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 10 06:01:33 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 1s5HRs-0000Ne-P6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 May 2024 06:01:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5HRU-0007OV-06; Fri, 10 May 2024 00:01:08 -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 1s5HRQ-0007OC-0o for bug-gnu-emacs@gnu.org; Fri, 10 May 2024 00:01:05 -0400 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 1s5HRP-0002bz-JZ for bug-gnu-emacs@gnu.org; Fri, 10 May 2024 00:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5HRN-0005tZ-Qy for bug-gnu-emacs@gnu.org; Fri, 10 May 2024 00:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 May 2024 04:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70579 X-GNU-PR-Package: emacs Original-Received: via spool by 70579-submit@debbugs.gnu.org id=B70579.171531362422646 (code B ref 70579); Fri, 10 May 2024 04:01:01 +0000 Original-Received: (at 70579) by debbugs.gnu.org; 10 May 2024 04:00:24 +0000 Original-Received: from localhost ([127.0.0.1]:41507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5HQm-0005tC-7P for submit@debbugs.gnu.org; Fri, 10 May 2024 00:00:24 -0400 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:40240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5HQh-0005t6-4I for 70579@debbugs.gnu.org; Fri, 10 May 2024 00:00:22 -0400 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 8590BFA09E; Fri, 10 May 2024 04:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1715313612; bh=+CdkoBrSXZH72jDlU3nx7tHYbSbAiCGGfETSFDx15Rs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RhOQiUlQJe0qcLs/hskKthJmAO0mXu3EW/bQMro0V0msVQjSN0gbI/W2SYD9ZPW/P ghIaI1eb5O/1TFkAmHU5XsJS+Fr5C8qdsG7KyuckGIpua9429Ul87MjAnyyrawgn2X foPdEJH21MFHrRtXB28zPjvgR5rGdsC7zRXNQNEA= In-Reply-To: <864jb78nbd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 May 2024 10:19:18 +0300") 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:284792 Archived-At: Eli Zaretskii writes: > Ping! Eric, can we make some progress here? > >> Cc: jimjoe@gmx.net >> From: Eric Abrahamsen >> Date: Thu, 25 Apr 2024 21:34:45 -0700 >> >> James Thomas via "Bug reports for GNU Emacs, the Swiss army knife of >> text editors" writes: >> >> > - (Preferably starting with an empty drafts folder) Compose a message >> > and save it. >> > - Open the drafts group, press e on the message and then kill the new >> > buffer; then (incidentally, if you now do '/ N' then this bug does not >> > arise) delete the message (B DEL) >> > - Press q >> > - The message count is wrong (but can be corrected with M-g) >> > >> > cf. In gnus.general (gnus-summary-goto-article "87y192lr8f.fsf@gmx.net") I've made some progress here -- the root of the problem seems to be that, when we hit "e" in the draft summary buffer to resume editing a draft, Gnus "jumps ahead" in message numbers. Basically what "editing" actually means is that the old draft is deleted, and a new draft is started, but the new draft has a article number that's the previous draft's number + 2, and the "draft" group's active number is also inflated (for instance (12 . 14) when it should be (12 . 13)). I was also able to get it to jump three numbers in some cases. >From this point, *any* normal usage will end up correcting the error: using "C-c C-k" to kill the editing buffer (instead of "C-x k") or as you noted any of the commands that lead to refreshing the unread count. But if you don't use any of those commands, you'll see the inflated active/unread count when you get back to the *Group* buffer (the "B DEL" isn't necessary for the recipe, and in fact at that stage the message under point has already been deleted). That's as far as I've gotten, and I'll keep working on why the article number starts off inflated. But in the meantime, the solution is "don't do that". Eric