unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Karl Fogel <kfogel@red-bean.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	Emacs Development <emacs-devel@gnu.org>
Subject: Re: Why does Gnus article-moving act like a fetch of new news?
Date: Wed, 05 May 2021 18:21:42 -0500	[thread overview]
Message-ID: <87eeekpy0p.fsf@red-bean.com> (raw)
In-Reply-To: <87tunjsfnm.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 03 May 2021 13:53:17 -0700")

On 03 May 2021, Eric Abrahamsen wrote:
>I thought this was worth looking into more closely, and I'm 
>getting
>closer to figuring out the problem.

[...distant cheering from over the horizon...]

>What we really need is to update the "active" number for the 
>receiving
>group -- that's Gnus' final authoritative figure for how many 
>articles
>are in the group, and if it's not updated then we see Karl's 
>situation
>where you enter the receiving group and don't see the moved 
>articles,
>until you do a full refresh of the group.
>
>The calls to `gnus-group-get-new-news-this-group' make the world 
>right
>only because they end up calling 
>`gnus-get-unread-articles-in-group',
>which updates the group's active number (in addition to a bunch 
>of other
>stuff).
>
>What I'm trying to figure out now is, what's the minimum amount 
>of code
>we can run that does this work, without running a whole bunch of 
>other
>unwanted processes. We can't just set the group's active number
>directly, because we need to check the cache and the agent, and 
>update
>the *Group* buffer, etc., as part of that. So we'll need some
>combination of the "larger" functions, invoked properly, but I 
>haven't
>figured out yet exactly how that will work.
>
>But anyway, the mystery is clearing.

Thank you so much for looking further into this.  Your reasoning & 
questions above seem exactly right to me.  Knowing this 
"combination of the 'larger' functions, invoked properly" would be 
a good thing, and I think might be of general utility in the Gnus 
code.  Surely this isn't the only place where a group needs to be 
told that its article set has changed and that it needs to refresh 
itself in a local-only way.

By the way, I received your message twice, with two separate 
Message-ID headers:

  Message-ID: <87v97zsfod.fsf@ericabrahamsen.net>

  Message-ID: <87tunjsfnm.fsf@ericabrahamsen.net>

Letting you know just in case that's a manifestation of some kind 
of message-sending buglet.  (Since I was an explicit recipient in 
the headers, along with emacs-devel, I wondered if maybe your MUA 
or MDA somehow generates a distinct message, with its own 
Message-ID, for each recipient, instead of all recipients getting 
the same message.)

Best regards,
-Karl



      reply	other threads:[~2021-05-05 23:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 21:47 Why does Gnus article-moving act like a fetch of new news? Karl Fogel
2021-04-10  4:11 ` Eric Abrahamsen
2021-04-10  4:58   ` Karl Fogel
2021-04-10  5:29     ` Eric Abrahamsen
2021-04-10  8:29 ` Andreas Schwab
2021-04-10 13:06   ` Stefan Monnier
2021-04-10 22:00     ` Eric Abrahamsen
2021-04-11  6:02       ` Karl Fogel
2021-04-11 16:05 ` Lars Ingebrigtsen
2021-04-12 17:05   ` Eric Abrahamsen
2021-04-12 17:56     ` Karl Fogel
2021-04-12 18:26       ` Eric Abrahamsen
2021-04-13 20:25         ` Karl Fogel
2021-04-13 21:59           ` Eric Abrahamsen
2021-04-14  3:27             ` Karl Fogel
2021-04-25 17:37             ` Lars Ingebrigtsen
2021-05-03 20:52             ` Eric Abrahamsen
2021-05-03 20:53             ` Eric Abrahamsen
2021-05-05 23:21               ` Karl Fogel [this message]

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=87eeekpy0p.fsf@red-bean.com \
    --to=kfogel@red-bean.com \
    --cc=emacs-devel@gnu.org \
    --cc=eric@ericabrahamsen.net \
    --cc=larsi@gnus.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).