GNU bug report logs -
#10205
[PATCH] setting nntp-server-list-active-group to nil breaks agent
Previous Next
Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>
Date: Sat, 3 Dec 2011 15:39:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 5.110018
Fixed in version 24.2
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 10205 in the body.
You can then email your comments to 10205 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#10205
; Package
gnus
.
(Sat, 03 Dec 2011 15:39:02 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
.
(Sat, 03 Dec 2011 15:39:02 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.gmane.org"
(nntp-server-list-active-group nil)))
Now start gnus, agentize the news.gmane.org server, subscribe to
gmane.emacs.devel and get new articles
ESC x g n u s RET ^ n J a q S s g m a n e . e m a c s . d e v e l RET g
Observe that the *Group* buffer looks like
*: gmane.emacs.devel
but it should have some integer instead of the `*'.
No Gnus v0.18
GNU Emacs 24.0.91.1 (amd64-portbld-freebsd9.0, GTK+ Version 2.24.6)
of 2011-11-18 on iznogoud.viz
2011-12-02 Wolfgang Jenkner <wjenkner <at> inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups"
format. In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
-- >8 --
Subject: [PATCH] Fix agentized servers which use the "groups" format.
---
lisp/gnus-agent.el | 10 ++++++++--
lisp/gnus-start.el | 2 +-
lisp/nntp.el | 3 ++-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/lisp/gnus-agent.el b/lisp/gnus-agent.el
index bf7f31e..849f66b 100644
--- a/lisp/gnus-agent.el
+++ b/lisp/gnus-agent.el
@@ -1302,12 +1302,18 @@ This can be added to `gnus-select-article-hook' or
(gnus-group-update-group group t)))
nil))
-(defun gnus-agent-save-active (method)
+(defun gnus-agent-save-active (method &optional groups-p)
+ "Sync the agent's active file with the current buffer.
+Pass non-nil for GROUPS-P if the buffer starts out in groups format.
+Regardless, both the file and the buffer end up in active format
+if METHOD is agentized; otherwise the function is a no-op."
(when (gnus-agent-method-p method)
(let* ((gnus-command-method method)
(new (gnus-make-hashtable (count-lines (point-min) (point-max))))
(file (gnus-agent-lib-file "active")))
- (gnus-active-to-gnus-format nil new)
+ (if groups-p
+ (gnus-groups-to-gnus-format nil new)
+ (gnus-active-to-gnus-format nil new))
(gnus-agent-write-active file new)
(erase-buffer)
(let ((nnheader-file-coding-system gnus-agent-file-coding-system))
diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el
index b121960..6077faa 100644
--- a/lisp/gnus-start.el
+++ b/lisp/gnus-start.el
@@ -2211,7 +2211,7 @@ If SCAN, request a scan of that group as well."
(gnus-online method)
(gnus-agent-method-p method))
(progn
- (gnus-agent-save-active method)
+ (gnus-agent-save-active method t)
(gnus-active-to-gnus-format method hashtb nil real-active))
(goto-char (point-min))
diff --git a/lisp/nntp.el b/lisp/nntp.el
index 9816c20..d0834cb 100644
--- a/lisp/nntp.el
+++ b/lisp/nntp.el
@@ -816,7 +816,8 @@ command whose response triggered the error."
(progn
(nntp-copy-to-buffer nntp-server-buffer
(point-min) (point-max))
- (gnus-groups-to-gnus-format method gnus-active-hashtb t))
+ (with-current-buffer nntp-server-buffer
+ (gnus-groups-to-gnus-format method gnus-active-hashtb t)))
;; We have read active entries, so we just delete the
;; superfluous gunk.
(goto-char (point-min))
--
1.7.7.4
Information forwarded
to
bugs <at> gnus.org
:
bug#10205
; Package
gnus
.
(Fri, 06 Jan 2012 18:34:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10205 <at> debbugs.gnu.org (full text, mbox):
Wolfgang Jenkner <wjenkner <at> inode.at> writes:
> * gnus-agent.el (gnus-agent-save-active): Deal with the "groups"
> format. In particular, add an optional argument and a docstring.
>
> * gnus-start.el (gnus-groups-to-gnus-format): Use it.
>
> * nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
> current before calling `gnus-groups-to-gnus-format'.
> Note that this was already the case for `gnus-active-to-gnus-format'.
Looks good. Did you receive the copyright assignment paperwork yet?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bugs <at> gnus.org
:
bug#10205
; Package
gnus
.
(Tue, 10 Apr 2012 21:27:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 10205 <at> debbugs.gnu.org (full text, mbox):
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
>> * gnus-agent.el (gnus-agent-save-active): Deal with the "groups"
>> format. In particular, add an optional argument and a docstring.
>>
>> * gnus-start.el (gnus-groups-to-gnus-format): Use it.
>>
>> * nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
>> current before calling `gnus-groups-to-gnus-format'.
>> Note that this was already the case for `gnus-active-to-gnus-format'.
>
> Looks good. Did you receive the copyright assignment paperwork yet?
Was there any progress on the copyright paperwork here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bugs <at> gnus.org
:
bug#10205
; Package
gnus
.
(Wed, 11 Apr 2012 17:04:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 10205 <at> debbugs.gnu.org (full text, mbox):
On Tue, Apr 10 2012, Lars Magne Ingebrigtsen wrote:
> Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
>
>>> * gnus-agent.el (gnus-agent-save-active): Deal with the "groups"
>>> format. In particular, add an optional argument and a docstring.
>>>
>>> * gnus-start.el (gnus-groups-to-gnus-format): Use it.
>>>
>>> * nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
>>> current before calling `gnus-groups-to-gnus-format'.
>>> Note that this was already the case for `gnus-active-to-gnus-format'.
>>
>> Looks good. Did you receive the copyright assignment paperwork yet?
>
> Was there any progress on the copyright paperwork here?
I've just signed and posted the assignment paper.
Wolfgang
Information forwarded
to
bugs <at> gnus.org
:
bug#10205
; Package
gnus
.
(Thu, 12 Apr 2012 12:44:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 10205 <at> debbugs.gnu.org (full text, mbox):
Wolfgang Jenkner <wjenkner <at> inode.at> writes:
> I've just signed and posted the assignment paper.
Ok; let me know when the FSF says that they've received the paperwork.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bugs <at> gnus.org
:
bug#10205
; Package
gnus
.
(Sat, 21 Apr 2012 02:02:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 10205 <at> debbugs.gnu.org (full text, mbox):
On Thu, Apr 12 2012, Lars Magne Ingebrigtsen wrote:
> Wolfgang Jenkner <wjenkner <at> inode.at> writes:
>
>> I've just signed and posted the assignment paper.
>
> Ok; let me know when the FSF says that they've received the paperwork.
They have sent a mail stating that the corresponding process is complete
(and sent it also to you in the capacity of emacs maintainer, IIUC).
Wolfgang
Information forwarded
to
bugs <at> gnus.org
:
bug#10205
; Package
gnus
.
(Sun, 13 May 2012 19:19:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 10205 <at> debbugs.gnu.org (full text, mbox):
Wolfgang Jenkner <wjenkner <at> inode.at> writes:
> They have sent a mail stating that the corresponding process is complete
> (and sent it also to you in the capacity of emacs maintainer, IIUC).
Thanks; I've now applied your patch to Ma Gnus.
--
(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
.
(Sun, 13 May 2012 19:19:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.2, send any further explanations to
10205 <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
.
(Sun, 13 May 2012 19:19:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 11 Jun 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.