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: rmail-total-messages has two different values, one is wrong Date: Wed, 26 Oct 2022 23:26:42 +0200 Message-ID: <878rl2i8dp.fsf@autistici.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="22284"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 26 23:29:32 2022 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 1onnxr-0005bT-Tu for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Oct 2022 23:29:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onnvL-0003bt-EN; Wed, 26 Oct 2022 17:26:55 -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 1onnvK-0003QW-0h for emacs-devel@gnu.org; Wed, 26 Oct 2022 17:26:54 -0400 Original-Received: from latitanza.investici.org ([2001:888:2000:56::19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onnvH-00027c-L0 for emacs-devel@gnu.org; Wed, 26 Oct 2022 17:26:53 -0400 Original-Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4MyMM83GpfzGp0M for ; Wed, 26 Oct 2022 21:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1666819604; bh=3k9XOfOvATJ7REPvIneV37GhX8ViEtD9eYzEpVe1NxA=; h=From:To:Subject:Date:From; b=asorv2JzGcVeiGvX9uvjqmuvoxjjIoHWrvxq1Xm6JOqfF54kguaAOlKumdmXPhWMX vjqf5kn9LfXomQoVtHNq8C0d9Rs2C25F5/NLqoqP2+HcaFr8XB6w4028WbUWpHBIjC 9BWqj05qROUHe6wZf/LWenMmCqtfvxHz/IqEWWKc= Original-Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4MyMM82HvLzGnxy for ; Wed, 26 Oct 2022 21:26:44 +0000 (UTC) Received-SPF: pass client-ip=2001:888:2000:56::19; envelope-from=andrea.monaco@autistici.org; helo=latitanza.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 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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298585 Archived-At: When I evaluate these forms, I get two different values: (with-current-buffer "RMAIL" rmail-total-messages) -> 4805 (with-current-buffer "RMAIL-summary" rmail-total-messages) -> 4457 The first one is correct and in fact the summary has 4805 lines. The second one is wrong. Why? This caused me some delay while working on a patch. I conjecture that the second binding is not updated when new mail is loaded. Andrea Monaco