From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Monaco Newsgroups: gmane.emacs.devel Subject: Re: rmail-total-messages has two different values, one is wrong Date: Sun, 18 Jun 2023 14:51:15 +0200 Message-ID: <87mt0xexx8.fsf@autistici.org> References: <83fsf9kxjb.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="2116"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 18 14:51:59 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qArst-0000Ni-Js for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Jun 2023 14:51:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qArsO-0004tA-Fy; Sun, 18 Jun 2023 08:51:28 -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 1qArsN-0004t1-Gg for emacs-devel@gnu.org; Sun, 18 Jun 2023 08:51:27 -0400 Original-Received: from confino.investici.org ([93.190.126.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qArsK-0004zr-Fj; Sun, 18 Jun 2023 08:51:27 -0400 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4QkXnx69WQz11xY; Sun, 18 Jun 2023 12:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1687092677; bh=tCm0343w0z/eExvDD53r9T23U9iau0yelMWECnApqWc=; h=From:To:Cc:Subject:In-Reply-To:Date:From; b=fIeTzvkRgBkexQvCOlqQzwMGEKC1AYNqPtll5ASVNRVWrkISYl/QXvHzMP51yqDGU ACYEJTchSWD41X6h3qNXMi5pP4VzpXAkzin604vpVHLG3GTTlhzOlUmG5JDDRAdRTk CulE95aTRXDM8OchG4JvtBdeQVCBHDEJsnTpMbhs= Original-Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4QkXnx4Vvyz11xT; Sun, 18 Jun 2023 12:51:17 +0000 (UTC) In-Reply-To: <83fsf9kxjb.fsf@gnu.org> (message from Eli Zaretskii on Thu, 27 Oct 2022 20:04:56 +0300) Received-SPF: pass client-ip=93.190.126.19; envelope-from=andrea.monaco@autistici.org; helo=confino.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306985 Archived-At: I think the problem is in rmail-count-new-messages. The function runs in the main buffer, so this assignment (setq rmail-total-messages (+ rmail-total-messages total-messages)) should be duplicated for the summary buffer (maybe the same goes for other assignments in that function, I don't know). But this bug is not nasty, so we could just document the current behavior. What do you think? Andrea Monaco