* elmo-multi.el (elmo-folder-newsgroups): Simplify.
authorhmurata <hmurata>
Sun, 23 Nov 2003 16:26:57 +0000 (16:26 +0000)
committerhmurata <hmurata>
Sun, 23 Nov 2003 16:26:57 +0000 (16:26 +0000)
* elmo-pipe.el (elmo-folder-get-primitive-list): Likewise.

* elmo-filter.el (elmo-folder-get-primitive-list): Fixed.

elmo/ChangeLog
elmo/elmo-filter.el
elmo/elmo-multi.el
elmo/elmo-pipe.el

index 81891c3..dd241e5 100644 (file)
@@ -1,3 +1,11 @@
+2003-11-23  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-multi.el (elmo-folder-newsgroups): Simplify.
+
+       * elmo-pipe.el (elmo-folder-get-primitive-list): Likewise.
+
+       * elmo-filter.el (elmo-folder-get-primitive-list): Fixed.
+
 2003-11-22  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo-version.el (elmo-version): Up to 2.11.22.
index 575b804..2e0e7ec 100644 (file)
 
 (luna-define-method elmo-folder-get-primitive-list ((folder
                                                     elmo-filter-folder))
-  (list (elmo-filter-folder-target-internal folder)))
+  (elmo-folder-get-primitive-list (elmo-filter-folder-target-internal folder)))
 
 (luna-define-method elmo-folder-contains-type ((folder elmo-filter-folder)
                                               type)
index 314bc49..8911469 100644 (file)
                                      elmo-msgdb-directory)))
 
 (luna-define-method elmo-folder-newsgroups ((folder elmo-multi-folder))
-  (delq nil
-       (elmo-flatten
-        (mapcar
-         'elmo-folder-newsgroups
-         (elmo-flatten
-          (mapcar
-           'elmo-folder-get-primitive-list
-           (elmo-multi-folder-children-internal folder)))))))
+  (apply  #'nconc
+         (mapcar
+          'elmo-folder-newsgroups
+          (elmo-multi-folder-children-internal folder))))
 
 (luna-define-method elmo-folder-get-primitive-list ((folder elmo-multi-folder))
   (elmo-flatten
index 44b46d3..fe6239e 100644 (file)
   folder)
 
 (luna-define-method elmo-folder-get-primitive-list ((folder elmo-pipe-folder))
-  (elmo-flatten
-   (mapcar
-    'elmo-folder-get-primitive-list
-    (list (elmo-pipe-folder-src-internal folder)
-         (elmo-pipe-folder-dst-internal folder)))))
+  (nconc
+   (elmo-folder-get-primitive-list (elmo-pipe-folder-src-internal folder))
+   (elmo-folder-get-primitive-list (elmo-pipe-folder-dst-internal folder))))
 
 (luna-define-method elmo-folder-contains-type ((folder elmo-pipe-folder)
                                               type)