* gnus-agent.el (gnus-agent-mode): Fixed the mode line reports
authorKevin Greiner <kevin.greiner@compsol.cc>
Tue, 4 Mar 2003 01:43:59 +0000 (01:43 +0000)
committerKevin Greiner <kevin.greiner@compsol.cc>
Tue, 4 Mar 2003 01:43:59 +0000 (01:43 +0000)
'plugged' when actually 'unplugged' bug.
(gnus-category-read): Ignore nil values when converting an
old-format category so that the new-format category will default
those attributes to the global variables.

lisp/ChangeLog
lisp/gnus-agent.el

index 52ae7a4..860f327 100644 (file)
@@ -1,3 +1,11 @@
+2003-03-03  Kevin Greiner  <kgreiner@xpediantsolutions.com>
+
+       * gnus-agent.el (gnus-agent-mode): Fixed the mode line reports
+       'plugged' when actually 'unplugged' bug.
+       (gnus-category-read): Ignore nil values when converting an
+       old-format category so that the new-format category will default
+       those attributes to the global variables.
+
 2003-03-03  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * mail-source.el (mail-source-delete-old-incoming-confirm): Fixed
index 624f60c..9c5b781 100644 (file)
@@ -416,7 +416,12 @@ manipulated as follows:
                                                     buffer))))
            minor-mode-map-alist))
     (when (eq major-mode 'gnus-group-mode)
-      (gnus-agent-toggle-plugged gnus-plugged))
+      (let ((init-plugged gnus-plugged))
+        ;; g-a-t-p does nothing when gnus-plugged isn't changed.
+        ;; Therefore, make certain that the current value does not
+        ;; match the desired initial value.
+        (setq gnus-plugged :unknown)
+        (gnus-agent-toggle-plugged init-plugged)))
     (gnus-run-hooks 'gnus-agent-mode-hook
                    (intern (format "gnus-agent-%s-mode-hook" buffer)))))
 
@@ -2110,11 +2115,13 @@ The following commands are available:
                 (mapcar
                  (lambda (c)
                    (setcdr c
-                           (mapcar*
-                            (lambda (valu symb)
-                              (cons symb valu))
-                            (cdr c)
-                            '(agent-predicate agent-score-file agent-groups)))
+                           (delq nil
+                                 (mapcar*
+                                  (lambda (valu symb)
+                                    (if valu
+                                        (cons symb valu)))
+                                  (cdr c)
+                                  '(agent-predicate agent-score-file agent-groups))))
                    c)
                  old-list)))))
          (list (gnus-agent-cat-make 'default)))))