GNU bug report logs -
#10350
[PATCH] agent confused by homonymous groups
Previous Next
Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>
Date: Thu, 22 Dec 2011 04:42:01 UTC
Severity: normal
Tags: fixed, patch
Found in version 5.110018
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10350 in the body.
You can then email your comments to 10350 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bugs <at> gnus.org
:
bug#10350
; Package
gnus
.
(Thu, 22 Dec 2011 04:42:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Wolfgang Jenkner <wjenkner <at> inode.at>
:
New bug report received and forwarded. Copy sent to
bugs <at> gnus.org
.
(Thu, 22 Dec 2011 04:42:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Let ~/.gnus consist of
(setq gnus-select-method
'(nntp "news.gnus.org"))
(add-to-list 'gnus-secondary-select-methods
'(nntp "nntp.aioe.org"))
Now start gnus, agentize both news servers, subscribe to comp.emacs from
news.gnus.org, get new articles, read an article, then subscribe to the
same newsgroup from nntp.aioe.org and get new articles
ESC x g n u s RET ^ n J a J a q
S s c o m p . e m a c s RET g 1 SPC q
S s ESC p n n t p + n n t p . a i o e . o r g : RET g
You will see something like
25091: nntp+nntp.aioe.org:comp.emacs
29190: comp.emacs
but if you try to read an article from nntp+nntp.aioe.org:comp.emacs
. 1 SPC
you just get the message "No unread news".
Actually, the number Gnus reports for this group is bogus:
$ echo "GROUP comp.emacs" | nc nntp.aioe.org 119
200 nntp.aioe.org InterNetNews NNRP server INN 2.5.2 ready (posting ok)
211 146 4101 4247 comp.emacs
You'll see below that I don't care at all about the cost of reading or
writing agent.lib/local some more but, of course, YMMV.
No Gnus v0.18
GNU Emacs 24.0.92.1 (amd64-portbld-freebsd9.0, GTK+ Version 2.24.6)
of 2011-12-04 on iznogoud.viz
2011-12-07 Wolfgang Jenkner <wjenkner <at> inode.at>
* gnus-agent.el (gnus-agent-load-local): Recompute
`gnus-agent-article-local' if its +method does not match
`gnus-command-method'.
-- >8 --
Subject: [PATCH] Recompute gnus-agent-article-local on changing method.
This prevents gnus-agent-save-local from saving a stale symbol-value
corresponding to some homonymous group (belonging to a different
method).
---
lisp/gnus-agent.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lisp/gnus-agent.el b/lisp/gnus-agent.el
index 849f66b..a0321f9 100644
--- a/lisp/gnus-agent.el
+++ b/lisp/gnus-agent.el
@@ -2235,7 +2235,10 @@ doesn't exist, to valid the overview buffer."
article counts for each of the method's subscribed groups."
(let ((gnus-command-method (or method gnus-command-method)))
(when (or (null gnus-agent-article-local-times)
- (zerop gnus-agent-article-local-times))
+ (zerop gnus-agent-article-local-times)
+ (not (gnus-methods-equal-p
+ gnus-command-method
+ (symbol-value (intern "+method" gnus-agent-article-local)))))
(setq gnus-agent-article-local
(gnus-cache-file-contents
(gnus-agent-lib-file "local")
--
1.7.8
Information forwarded
to
bugs <at> gnus.org
:
bug#10350
; Package
gnus
.
(Wed, 04 Jan 2012 20:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10350 <at> debbugs.gnu.org (full text, mbox):
Wolfgang Jenkner <wjenkner <at> inode.at> writes:
> 2011-12-07 Wolfgang Jenkner <wjenkner <at> inode.at>
>
> * gnus-agent.el (gnus-agent-load-local): Recompute
> `gnus-agent-article-local' if its +method does not match
> `gnus-command-method'.
Thanks; applied.
Even though this is a "tiny patch", this is now the third one, so we're
at the limit where the FSF requires copyright assignments for the code.
Would you be willing to assign Emacs copyright to the FSF? Doing so now
will speed up applying any further patches from you in the future.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 04 Jan 2012 20:44:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.1, send any further explanations to
10350 <at> debbugs.gnu.org and Wolfgang Jenkner <wjenkner <at> inode.at>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 04 Jan 2012 20:44:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bugs <at> gnus.org
:
bug#10350
; Package
gnus
.
(Thu, 05 Jan 2012 01:49:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 10350 <at> debbugs.gnu.org (full text, mbox):
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> Even though this is a "tiny patch", this is now the third one,
There are some more in emacs.
> Would you be willing to assign Emacs copyright to the FSF?
Sure.
Wolfgang
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 02 Feb 2012 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 234 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.