[gnus git] branch master updated: =1= Reinstate the two-part async code again so that we can debug it properly.

Lars Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  4c9cf4fc9be08c9e89ccb35b30428e2ac398c97e (commit)
      from  b2ea476e0bc6e2973976b376c15be5381fe3127f (commit)


- Log -----------------------------------------------------------------
commit 4c9cf4fc9be08c9e89ccb35b30428e2ac398c97e
Author: Lars Ingebrigtsen <[email protected]>
Date:   Mon Feb 14 13:04:46 2011 -0800

    Reinstate the two-part async code again so that we can debug it properly.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6dc0c60..2dc96bb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2011-02-14  Lars Ingebrigtsen  <[email protected]>
 
+	* nntp.el (nntp-retrieve-group-data-early): Reinstate the two-part
+	async code again so that we can debug it properly.
+
 	* message.el (message-reply): Take an optional switch-buffer parameter
 	so that Gnus window confs are respected better.
 
diff --git a/lisp/nntp.el b/lisp/nntp.el
index 4b42637..0fc3855 100644
--- a/lisp/nntp.el
+++ b/lisp/nntp.el
@@ -774,7 +774,7 @@ command whose response triggered the error."
 	 (nntp-copy-to-buffer nntp-server-buffer (point-min) (point-max))
          'headers)))))
 
-(deffoo nntp-retrieve-group-data-early-disabled (server infos)
+(deffoo nntp-retrieve-group-data-early (server infos)
   "Retrieve group info on INFOS."
   (nntp-with-open-group nil server
     (when (nntp-find-connection-buffer nntp-server-buffer)
@@ -793,7 +793,7 @@ command whose response triggered the error."
 	     nil command (gnus-group-real-name (gnus-info-group info)))))
 	(length infos)))))
 
-(deffoo nntp-finish-retrieve-group-infos-disabled (server infos count)
+(deffoo nntp-finish-retrieve-group-infos (server infos count)
   (nntp-with-open-group nil server
     (let ((buf (nntp-find-connection-buffer nntp-server-buffer))
 	  (method (gnus-find-method-for-group
@@ -814,10 +814,7 @@ command whose response triggered the error."
 			(< received count)))
 	    (nntp-accept-response))
 	  ;; We now have all the entries.  Remove CRs.
-	  (goto-char (point-min))
-	  (while (search-forward "\r" nil t)
-	    (replace-match "" t t))
-
+	  (nnheader-strip-cr)
 	  (if (not nntp-server-list-active-group)
 	      (progn
 		(nntp-copy-to-buffer nntp-server-buffer
@@ -830,7 +827,9 @@ command whose response triggered the error."
 	      (delete-region (match-beginning 0)
 			     (progn (forward-line 1) (point))))
 	    (nntp-copy-to-buffer nntp-server-buffer (point-min) (point-max))
-	    (gnus-active-to-gnus-format method gnus-active-hashtb nil t)))))))
+	    (with-current-buffer nntp-server-buffer
+	      (gnus-active-to-gnus-format method gnus-active-hashtb
+					  nil t))))))))
 
 (deffoo nntp-retrieve-groups (groups &optional server)
   "Retrieve group info on GROUPS."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    3 +++
 lisp/nntp.el   |   13 ++++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.