aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2011-02-01 02:19:04 +0000
committerKatsumi Yamaoka2011-02-01 02:19:04 +0000
commitc1d5851dc03bdf27d7ded885526cf0e721d063ed (patch)
tree9512e1828a647750b270fa47dd8a060506d3ce78
parent4fdfcddf73d5e7ab67defcff9ef3f01fd9b492a4 (diff)
downloademacs-c1d5851dc03bdf27d7ded885526cf0e721d063ed.tar.gz
emacs-c1d5851dc03bdf27d7ded885526cf0e721d063ed.zip
gnus-start.el (gnus-read-active-file-1): Remove dead parameter infos.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/gnus-start.el12
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f9bcd902cd9..ffc2129cb18 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12011-02-01 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-start.el (gnus-read-active-file-1): Remove dead parameter infos.
4
12011-01-31 Lars Ingebrigtsen <larsi@gnus.org> 52011-01-31 Lars Ingebrigtsen <larsi@gnus.org>
2 6
3 * gnus-art.el (article-transform-date): Rewrite to still work when 7 * gnus-art.el (article-transform-date): Rewrite to still work when
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 3879df3c4b6..7517c871c7d 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1700,6 +1700,8 @@ If SCAN, request a scan of that group as well."
1700 'retrieve-group-data-early (car method))) 1700 'retrieve-group-data-early (car method)))
1701 (when (gnus-check-backend-function 'request-scan (car method)) 1701 (when (gnus-check-backend-function 'request-scan (car method))
1702 (gnus-request-scan nil method)) 1702 (gnus-request-scan nil method))
1703 ;; Store the token we get back from -early so that we
1704 ;; can pass it to -finish later.
1703 (setcar (nthcdr 3 elem) 1705 (setcar (nthcdr 3 elem)
1704 (gnus-retrieve-group-data-early method infos))))))) 1706 (gnus-retrieve-group-data-early method infos)))))))
1705 1707
@@ -1741,6 +1743,8 @@ If SCAN, request a scan of that group as well."
1741(defun gnus-read-active-for-groups (method infos early-data) 1743(defun gnus-read-active-for-groups (method infos early-data)
1742 (with-current-buffer nntp-server-buffer 1744 (with-current-buffer nntp-server-buffer
1743 (cond 1745 (cond
1746 ;; Finish up getting the data from the methods that have -early
1747 ;; methods.
1744 ((and 1748 ((and
1745 (gnus-check-backend-function 'finish-retrieve-group-infos (car method)) 1749 (gnus-check-backend-function 'finish-retrieve-group-infos (car method))
1746 infos 1750 infos
@@ -1748,6 +1752,7 @@ If SCAN, request a scan of that group as well."
1748 (gnus-online method))) 1752 (gnus-online method)))
1749 (gnus-finish-retrieve-group-infos method infos early-data) 1753 (gnus-finish-retrieve-group-infos method infos early-data)
1750 (gnus-agent-save-active method)) 1754 (gnus-agent-save-active method))
1755 ;; Most backends have -retrieve-groups.
1751 ((and (gnus-check-backend-function 'retrieve-groups (car method)) 1756 ((and (gnus-check-backend-function 'retrieve-groups (car method))
1752 infos) 1757 infos)
1753 (when (gnus-check-backend-function 'request-scan (car method)) 1758 (when (gnus-check-backend-function 'request-scan (car method))
@@ -1757,8 +1762,11 @@ If SCAN, request a scan of that group as well."
1757 (dolist (info infos (nreverse groups)) 1762 (dolist (info infos (nreverse groups))
1758 (push (gnus-group-real-name (gnus-info-group info)) groups)) 1763 (push (gnus-group-real-name (gnus-info-group info)) groups))
1759 method))) 1764 method)))
1765 ;; Virtually all backends have -request-list.
1760 ((gnus-check-backend-function 'request-list (car method)) 1766 ((gnus-check-backend-function 'request-list (car method))
1761 (gnus-read-active-file-1 method nil infos)) 1767 (gnus-read-active-file-1 method nil))
1768 ;; Except nnvirtual and friends, where we request each group, one
1769 ;; by one.
1762 (t 1770 (t
1763 (dolist (info infos) 1771 (dolist (info infos)
1764 (gnus-activate-group (gnus-info-group info) nil nil method t)))))) 1772 (gnus-activate-group (gnus-info-group info) nil nil method t))))))
@@ -1987,7 +1995,7 @@ If SCAN, request a scan of that group as well."
1987 (message "Quit reading the active file") 1995 (message "Quit reading the active file")
1988 nil)))))))) 1996 nil))))))))
1989 1997
1990(defun gnus-read-active-file-1 (method force &optional infos) 1998(defun gnus-read-active-file-1 (method force)
1991 (let (where mesg) 1999 (let (where mesg)
1992 (setq where (nth 1 method) 2000 (setq where (nth 1 method)
1993 mesg (format "Reading active file%s via %s..." 2001 mesg (format "Reading active file%s via %s..."