]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-sum.el (gnus-update-marks): Reinstate the code to not alter marks on non-selecte...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 4 Apr 2011 14:03:08 +0000 (14:03 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 4 Apr 2011 14:03:08 +0000 (14:03 +0000)
gnus-start.el (gnus-get-unread-articles): Don't try to contact denied servers.

lisp/gnus/ChangeLog
lisp/gnus/gnus-start.el
lisp/gnus/gnus-sum.el

index 44c29256b7c4230525c39c466a1b9a05792bb353..64cc6eb4f8bb75228199d5813e4b45996dac511c 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-sum.el (gnus-update-marks): Reinstate the code to not alter
+       marks on non-selected articles.
+
 2011-04-02  Chong Yidong  <cyd@stupidchicken.com>
 
        * proto-stream.el: Move to Emacs core, at net/network-stream.el.
        * mm-view.el (mm-display-inline-fontify): Do not fontify with
        fundamental-mode.
 
+2011-04-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-start.el (gnus-get-unread-articles): Don't try to contact denied
+       servers.
+
 2011-03-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-sum.el (gnus-update-marks): Revert intersection change, which
index afded87fe3776e9629b6114e23de6f2ff15ab121..fa582c58aeec552427b4f4a850934bec73b00d39 100644 (file)
@@ -1723,7 +1723,9 @@ If SCAN, request a scan of that group as well."
     ;; Do the rest of the retrieval.
     (dolist (elem type-cache)
       (destructuring-bind (method method-type infos early-data) elem
-       (when (and method infos)
+       (when (and method infos
+                  (not (eq (gnus-server-status method)
+                           'denied)))
          (let ((updatep (gnus-check-backend-function
                          'request-update-info (car method))))
            ;; See if any of the groups from this method require updating.
index 10aa4e12dcf68c22ed27b4b1ab7f9aa4383b5ade..e3ae1d7f528885cfba7fc2f24cda364c5745ced8 100644 (file)
@@ -6070,12 +6070,15 @@ If SELECT-ARTICLES, only select those articles from GROUP."
          (let* ((old (cdr (assq (cdr type) (gnus-info-marks info))))
                 ;; Don't do anything about marks for articles we
                 ;; didn't actually get any headers for.
-                (existing (gnus-compress-sequence gnus-newsgroup-articles))
                 (del
-                 (gnus-remove-from-range (gnus-copy-sequence old) list))
+                 (gnus-list-range-intersection
+                  gnus-newsgroup-articles
+                  (gnus-remove-from-range (gnus-copy-sequence old) list)))
                 (add
-                 (gnus-remove-from-range
-                  (gnus-copy-sequence list) old)))
+                 (gnus-list-range-intersection
+                  gnus-newsgroup-articles
+                  (gnus-remove-from-range
+                   (gnus-copy-sequence list) old))))
            (when add
              (push (list add 'add (list (cdr type))) delta-marks))
            (when del