* gnus.el (gnus-variable-list): Add gnus-agent-covered-methods.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 11 Dec 2002 00:17:32 +0000 (00:17 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 11 Dec 2002 00:17:32 +0000 (00:17 +0000)
* gnus-agent.el (gnus-agent-check-overview-buffer): Remove debug
calls.

* gnus-sum.el (gnus-summary-highlight-line): Don't set the
downloaded variable if we're in an uncovered group.

* gnus-agent.el (gnus-agent-downloaded-article-face): Change the
font to soemthing less noticeable.
(gnus-agent-group-covered-p): New function.

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

index ea41af0..de95849 100644 (file)
@@ -1,3 +1,17 @@
+2002-12-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus.el (gnus-variable-list): Add gnus-agent-covered-methods.
+
+       * gnus-agent.el (gnus-agent-check-overview-buffer): Remove debug
+       calls. 
+
+       * gnus-sum.el (gnus-summary-highlight-line): Don't set the
+       downloaded variable if we're in an uncovered group.
+
+       * gnus-agent.el (gnus-agent-downloaded-article-face): Change the
+       font to soemthing less noticeable.
+       (gnus-agent-group-covered-p): New function.
+
 2002-12-09  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus-agent.el (gnus-agent-braid-nov): Remove corrupted lines.
index 319b7d9..d973513 100644 (file)
   (autoload 'number-at-point "thingatpt"))
 
 (defface gnus-agent-downloaded-article-face
-  '((((class color) (background light)) (:foreground "Orange" :bold t))
-    (((class color) (background dark)) (:foreground "Yellow" :bold t))
-    (t (:inverse-video t :bold t)))
+  '((((class color)
+      (background light))
+     (:foreground "darkslategray" :bold nil))
+    (((class color) (background dark))
+     (:foreground "LightGray" :bold nil))
+    (t (:inverse-video t :bold nil)))
   "Face used for displaying downloaded articles"
   :group 'gnus-agent)
 
@@ -1089,14 +1092,12 @@ and that there are no duplicates."
             (while (and (zerop (forward-line 1))
                         (not (eobp)))
               (let ((cur (number-at-point)))
-                (cond ((= cur prev-num)
-                       (gnus-message 10
-                                     "Duplicate overview line for %d" cur)
-                       (debug nil (format "Duplicate overview line for %d" cur))
-                       (delete-region (point) (progn (forward-line 1) (point))))
-                      ((< cur prev-num)
-                       (gnus-message 10 "Overview buffer not sorted!")
-                       (debug nil "Overview buffer not sorted!"))))
+                (cond
+                ((= cur prev-num)
+                 (gnus-message 10 "Duplicate overview line for %d" cur)
+                 (delete-region (point) (progn (forward-line 1) (point))))
+                ((< cur prev-num)
+                 (gnus-message 10 "Overview buffer not sorted!"))))
               (setq prev-num (number-at-point)))))))))
 
 
@@ -2463,6 +2464,10 @@ If CLEAN, don't read existing active files."
             (if (eq status 'offline) 'offline 'online)
             (if (eq status 'offline) 'online 'offline))))
 
+(defun gnus-agent-group-covered-p (group)
+  (member (gnus-group-method group)
+         gnus-agent-covered-methods))
+
 (provide 'gnus-agent)
 
 ;;; gnus-agent.el ends here
index 1eb7b65..2c00b11 100644 (file)
@@ -10897,6 +10897,7 @@ If REVERSE, save parts that do not match TYPE."
        (and
         (boundp 'gnus-agent-article-alist)
         gnus-agent-article-alist
+        (gnus-agent-group-covered-p gnus-newsgroup-name)
         ;; Optimized for when gnus-summary-highlight-line is
         ;; called multiple times for articles in ascending
         ;; order (i.e. initial generation of summary buffer).
@@ -10915,7 +10916,8 @@ If REVERSE, save parts that do not match TYPE."
                            article)
                         (setq n (cdr gnus-summary-highlight-line-downloaded-cached)))
               (setq gnus-summary-highlight-line-downloaded-cached n)))
-          (and (eq (caar gnus-summary-highlight-line-downloaded-cached) article)
+          (and (eq (caar gnus-summary-highlight-line-downloaded-cached)
+                   article)
                (cdar gnus-summary-highlight-line-downloaded-cached))))))
     (let ((face (funcall (gnus-summary-highlight-line-0))))
       (unless (eq face (get-text-property beg 'face))
index 710c94b..d224ff0 100644 (file)
@@ -2006,7 +2006,7 @@ such as a mark that says whether an article is stored in the cache
                        gnus-newsrc-alist gnus-server-alist
                        gnus-killed-list gnus-zombie-list
                        gnus-topic-topology gnus-topic-alist
-                       gnus-format-specs)
+                       gnus-format-specs gnus-agent-covered-methods)
   "Gnus variables saved in the quick startup file.")
 
 (defvar gnus-newsrc-alist nil