X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-start.el;h=dafcd6427271303933118a274e7f212ddba76dc4;hb=6b5248cbf430b93854183be2b1c5a869f810e463;hp=d5880e81a782e407f8d4706813f4ab05ed15113a;hpb=d4938527a0a30148298b529cb1f7fd6ebd2ca1ec;p=gnus diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index d5880e81a..dafcd6427 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -428,6 +428,7 @@ This hook is called as the first thing when Gnus is started." (defcustom gnus-after-getting-new-news-hook '(gnus-display-time-event-handler) "*A hook run after Gnus checks for new news when Gnus is already running." + :version "24.1" :group 'gnus-group-new :type 'hook) @@ -1062,15 +1063,6 @@ If LEVEL is non-nil, the news will be set up at level LEVEL." (gnus-server-opened gnus-select-method)) (gnus-check-bogus-newsgroups)) - ;; We might read in new NoCeM messages here. - (when (and (not dont-connect) - gnus-use-nocem - (or (and (numberp gnus-use-nocem) - (numberp level) - (>= level gnus-use-nocem)) - (not level))) - (gnus-nocem-scan-groups)) - ;; Read any slave files. (gnus-master-read-slave-newsrc) @@ -1473,7 +1465,7 @@ newsgroup." (push group bogus))) (if confirm (map-y-or-n-p - "Remove bogus group %s? " + (format "Remove bogus group %%s (of %d groups)? " (length bogus)) (lambda (group) ;; Remove all bogus subscribed groups by first killing them, and ;; then removing them from the list of killed groups. @@ -1682,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 @@ -1766,8 +1759,10 @@ If SCAN, request a scan of that group as well." (not (gnus-method-denied-p method))) (unless (gnus-server-opened method) (gnus-open-server method)) - (when (gnus-check-backend-function - 'retrieve-group-data-early (car method)) + (when (and + (gnus-server-opened method) + (gnus-check-backend-function + 'retrieve-group-data-early (car method))) (when (gnus-check-backend-function 'request-scan (car method)) (gnus-request-scan nil method)) (setcar (nthcdr 3 elem) @@ -2095,7 +2090,7 @@ If SCAN, request a scan of that group as well." (gnus-message 5 "%s" mesg) (gnus-active-to-gnus-format method gnus-active-hashtb nil t) ;; We mark this active file as read. - (push method gnus-have-read-active-file) + (add-to-list 'gnus-have-read-active-file method) (gnus-message 5 "%sdone" mesg))))))) (defun gnus-read-active-file-2 (groups method)