[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rmail-total-messages has two different values, one is wrong
From: |
Eli Zaretskii |
Subject: |
Re: rmail-total-messages has two different values, one is wrong |
Date: |
Thu, 27 Oct 2022 20:04:56 +0300 |
> 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?