all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Luc Van Eycken <Luc.VanEycken@esat.kuleuven.be>
Cc: bug-gnu-emacs@gnu.org, bugs@gnus.org
Subject: Re: gnus-summary-catchup turns ticked into unread
Date: Tue, 03 Jul 2007 19:25:37 +0900	[thread overview]
Message-ID: <b4mmyydn5r2.fsf@jpl.org> (raw)
In-Reply-To: 20070702160929.C21251C8115@galatea.esat.kuleuven.be

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

>>>>> In <20070702160929.C21251C8115@galatea.esat.kuleuven.be>
>>>>>	Luc Van Eycken wrote:

> If I have a newsgroup with ticked persistent articles and I leave this
> group with the "c" key (gnus-summary-catchup-and-exit), all ticked articles
> are turned into unread non-ticked articles. It is a regression from Emacs 21,
> but I also believe this is a bug since it seems to contradict the info
> documentation.

That's a coincidence!  When I was wandering in the Agent code
today, I encountered the same trouble and reached to the same
place in gnus-sum.el.

> As far as I can see, it is due to the addition of gnus-newsgroup-unfetched
> inside the function gnus-summary-catchup (gnus-sum.el line 10517).
> Since this is a Gnus 5.11 addition, I assume that removing it again is not
> the correct solution.

I think regarding unfetched articles as unread articles is
correct.  The problem is that cached articles are not counted as
fetched articles, or Gnus forgot that those cached articles used
to have been fetched.  I'm not quite sure how it happens because
I'm new to the Agent.  But I briefly checked that the patch
attached below does the trick.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 561 bytes --]

--- gnus-sum.el~	2007-06-06 15:39:11 +0000
+++ gnus-sum.el	2007-07-03 10:22:57 +0000
@@ -10514,7 +10514,8 @@
 		      (gnus-sorted-nunion
                        (gnus-sorted-intersection gnus-newsgroup-unreads
 						 gnus-newsgroup-downloadable)
-                       gnus-newsgroup-unfetched)))
+		       (gnus-sorted-difference gnus-newsgroup-unfetched
+					       gnus-newsgroup-cached))))
 	    ;; We actually mark all articles as canceled, which we
 	    ;; have to do when using auto-expiry or adaptive scoring.
 	    (gnus-summary-show-all-threads)

[-- Attachment #3: Type: text/plain, Size: 108 bytes --]


I am going to install it (or other) in the Gnus CVS repository
after learning the Agent further.

Regards,

[-- Attachment #4: Type: text/plain, Size: 149 bytes --]

_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs

  reply	other threads:[~2007-07-03 10:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 16:09 gnus-summary-catchup turns ticked into unread Luc Van Eycken
2007-07-03 10:25 ` Katsumi Yamaoka [this message]
2007-07-04 10:10   ` Katsumi Yamaoka
     [not found]     ` <E1I6GBH-0006d2-HI@fencepost.gnu.org>
     [not found]       ` <b4mejjn1usy.fsf@jpl.org>
     [not found]         ` <E1I6Y2D-00062v-Iq@fencepost.gnu.org>
     [not found]           ` <b4mr6nhjgq1.fsf@jpl.org>
     [not found]             ` <E1I8Nlq-0000oX-F6@fencepost.gnu.org>
     [not found]               ` <b4mps2zzivn.fsf@jpl.org>
2007-08-06 14:22                 ` Richard Stallman
2007-08-14  0:28                 ` Richard Stallman
2007-08-16  1:54                   ` Katsumi Yamaoka
2007-08-16 18:39                     ` Richard Stallman
2007-08-17  1:22                       ` Katsumi Yamaoka

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mmyydn5r2.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=Luc.VanEycken@esat.kuleuven.be \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=bugs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.