(gnus-articles-to-read): If the number of unread articles is more than
authorkeiichi <keiichi>
Tue, 18 Jul 2000 07:12:52 +0000 (07:12 +0000)
committerkeiichi <keiichi>
Tue, 18 Jul 2000 07:12:52 +0000 (07:12 +0000)
`gnus-large-newsgroup', use it in default instead of the maximum number.

lisp/gnus-sum.el

index 8b06e80..6ec23a7 100644 (file)
@@ -4251,12 +4251,14 @@ If SELECT-ARTICLES, only select those articles from GROUP."
                 ((and (or (<= scored marked) (= scored number))
                       (numberp gnus-large-newsgroup)
                       (> number gnus-large-newsgroup))
-                 (let ((input
-                        (read-string
-                         (format
-                          "How many articles from %s (default %d): "
-                          (gnus-limit-string gnus-newsgroup-name 35)
-                          number))))
+                 (let* ((cursor-in-echo-area nil)
+                        (input (read-from-minibuffer
+                                (format
+                                 "How many articles from %s (max %d): "
+                                 (gnus-limit-string gnus-newsgroup-name 35)
+                                 number)
+                                (cons (number-to-string gnus-large-newsgroup)
+                                      0))))
                    (if (string-match "^[ \t]*$" input) number input)))
                 ((and (> scored marked) (< scored number)
                       (> (- scored number) 20))