From: Eli Zaretskii <eliz@gnu.org>
To: Andrea Monaco <andrea.monaco@autistici.org>
Cc: emacs-devel@gnu.org
Subject: Re: rmail-total-messages has two different values, one is wrong
Date: Thu, 27 Oct 2022 20:04:56 +0300 [thread overview]
Message-ID: <83fsf9kxjb.fsf@gnu.org> (raw)
In-Reply-To: <878rl2i8dp.fsf@autistici.org> (message from Andrea Monaco on Wed, 26 Oct 2022 23:26:42 +0200)
> From: Andrea Monaco <andrea.monaco@autistici.org>
> Date: Wed, 26 Oct 2022 23:26:42 +0200
>
>
> 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.
It is supposed to happen inside rmail-select-summary, which is called
from rmail-get-new-mail-1. Can you step through it and see why it
doesn't update the count?
next prev parent reply other threads:[~2022-10-27 17:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 21:26 rmail-total-messages has two different values, one is wrong Andrea Monaco
2022-10-27 17:04 ` Eli Zaretskii [this message]
2023-06-18 12:51 ` Andrea Monaco
2023-06-24 12:30 ` Eli Zaretskii
2023-07-01 8:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fsf9kxjb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=andrea.monaco@autistici.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).