Require gnus-agent before bidning gnus-agent variables.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 7 Oct 2010 18:14:58 +0000 (20:14 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 7 Oct 2010 18:14:58 +0000 (20:14 +0200)
lisp/ChangeLog
lisp/gnus-start.el

index 60ecd36..37bd6c9 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-start.el (gnus-get-unread-articles): Require gnus-agent before
+       bidning gnus-agent variables.
+
        * shr.el (shr-render-td): Use a cache for the table rendering function
        to avoid getting an exponential rendering behaviour in nested tables.
        (shr-insert): Rework the line-breaking algorithm.
index e5a3ec7..26da22e 100644 (file)
@@ -1674,6 +1674,7 @@ If SCAN, request a scan of that group as well."
 ;; and compute how many unread articles there are in each group.
 (defun gnus-get-unread-articles (&optional level)
   (setq gnus-server-method-cache nil)
+  (require 'gnus-agent)
   (let* ((newsrc (cdr gnus-newsrc-alist))
         (alevel (or level gnus-activate-level (1+ gnus-level-subscribed)))
         (foreign-level