[gnus git] branch master updated: m0-5-78-gb12f45e =1= int, nnimap: remove to-buffer in request-head

Julien Danjou <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  b12f45eae16c1be269eb0b35668e03c09aed831c (commit)
      from  04ef2229b34193aeb8641a4daf8a9abe0e1a6376 (commit)


- Log -----------------------------------------------------------------
commit b12f45eae16c1be269eb0b35668e03c09aed831c
Author: Julien Danjou <[email protected]>
Date:   Mon Aug 6 03:01:39 2012 +0200

    int, nnimap: remove to-buffer in request-head
    
    Signed-off-by: Julien Danjou <[email protected]>

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1fb9e88..9e1cc6e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
 2012-08-06  Julien Danjou  <[email protected]>
 
+	* nnimap.el (nnimap-request-article): Remove to-buffer argument.
+
+	* gnus-int.el (gnus-request-head): Remove to-buffer argument, only
+	supported by nnimap actually. Reverts previous change.
+
 	* gnus-int.el (gnus-request-head): Add an optional to-buffer parameter
 	to mimic `gnus-request-article' and enjoy backends the nn*-request-head
 	to-buffer argument that is already supported.
diff --git a/lisp/gnus-int.el b/lisp/gnus-int.el
index 9898060..339e3d9 100644
--- a/lisp/gnus-int.el
+++ b/lisp/gnus-int.el
@@ -581,9 +581,8 @@ real group. Does nothing on a real group."
        (and (bound-and-true-p gnus-registry-enabled)
             (gnus-try-warping-via-registry))))))
 
-(defun gnus-request-head (article group &optional to-buffer)
-  "Request the head of ARTICLE in GROUP.
-If TO-BUFFER, insert the article in that buffer."
+(defun gnus-request-head (article group)
+  "Request the head of ARTICLE in GROUP."
   (let* ((gnus-command-method (gnus-find-method-for-group group))
 	 (head (gnus-get-function gnus-command-method 'request-head t))
 	 res clean-up)
@@ -601,15 +600,13 @@ If TO-BUFFER, insert the article in that buffer."
      ;; Use `head' function.
      ((fboundp head)
       (setq res (funcall head article (gnus-group-real-name group)
-			 (nth 1 gnus-command-method)
-                         to-buffer)))
+			 (nth 1 gnus-command-method))))
      ;; Use `article' function.
      (t
-      (setq res (gnus-request-article article group to-buffer)
+      (setq res (gnus-request-article article group)
 	    clean-up t)))
     (when clean-up
-      (with-current-buffer (or to-buffer
-                               nntp-server-buffer)
+      (with-current-buffer nntp-server-buffer
 	(goto-char (point-min))
 	(when (search-forward "\n\n" nil t)
 	  (delete-region (1- (point)) (point-max)))
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index ebd268e..e195b42 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -597,7 +597,7 @@ textual parts.")
 		(nnheader-ms-strip-cr)))
 	    (cons group article)))))))
 
-(deffoo nnimap-request-head (article &optional group server to-buffer)
+(deffoo nnimap-request-head (article &optional group server)
   (when group
     (setq group (nnimap-decode-gnus-group group)))
   (when (nnimap-change-group group server)
@@ -610,7 +610,7 @@ textual parts.")
 	 article (format "UID FETCH %%d %s"
 			 (nnimap-header-parameters)))
 	(let ((buffer (current-buffer)))
-	  (with-current-buffer (or to-buffer nntp-server-buffer)
+	  (with-current-buffer nntp-server-buffer
 	    (erase-buffer)
 	    (insert-buffer-substring buffer)
 	    (nnheader-ms-strip-cr)

-----------------------------------------------------------------------
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   |    5 +++++
 lisp/gnus-int.el |   13 +++++--------
 lisp/nnimap.el   |    4 ++--
 3 files changed, 12 insertions(+), 10 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.