Don't prompt for unexisting articles
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Feb 2012 17:44:52 +0000 (18:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Feb 2012 17:44:52 +0000 (18:44 +0100)
* gnus-sum.el (gnus-articles-to-read): Don't include unexisting
articles in the list of articles to be selected.

lisp/ChangeLog
lisp/gnus-sum.el

index 95e561e..4ce1140 100644 (file)
@@ -1,5 +1,8 @@
 2012-02-11  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-articles-to-read): Don't include unexisting
+       articles in the list of articles to be selected.
+
        * nnimap.el (nnimap-retrieve-group-data-early): Query for unexisting
        articles.
        (nnimap-update-info): Keep track of unexisting articles.
index 46191ab..8c5f3ee 100644 (file)
@@ -5674,7 +5674,7 @@ If SELECT-ARTICLES, only select those articles from GROUP."
        (setq gnus-newsgroup-unselected
              (gnus-sorted-difference gnus-newsgroup-unreads articles))
       (setq articles (gnus-articles-to-read group read-all)))
-
+    
     (cond
      ((null articles)
       ;;(gnus-message 3 "Couldn't select newsgroup -- no articles to display")
@@ -5813,6 +5813,7 @@ If SELECT-ARTICLES, only select those articles from GROUP."
   "Find out what articles the user wants to read."
   (let* ((only-read-p t)
         (articles
+         (gnus-list-range-difference
          ;; Select all articles if `read-all' is non-nil, or if there
          ;; are no unread articles.
          (if (or read-all
@@ -5839,7 +5840,8 @@ If SELECT-ARTICLES, only select those articles from GROUP."
            (setq only-read-p nil)
            (gnus-sorted-nunion
             (gnus-sorted-union gnus-newsgroup-dormant gnus-newsgroup-marked)
-            gnus-newsgroup-unreads)))
+            gnus-newsgroup-unreads))
+         (cdr (assq 'unexist (gnus-info-marks (gnus-get-info group))))))
         (scored-list (gnus-killed-articles gnus-newsgroup-killed articles))
         (scored (length scored-list))
         (number (length articles))