elmo-list-filter.
* elmo-util.el (elmo-list-filter): Simplify.
2003-08-02 Yuuichi Teranishi <teranisi@gohome.org>
+ * elmo-multi.el (elmo-folder-search): Use nil for 1st argument of
+ elmo-list-filter.
+
+ * elmo-util.el (elmo-list-filter): Simplify.
+
* elmo.el (elmo-generic-folder-commit): Use elmo-folder-list-messages.
(elmo-folder-set-info-max-by-numdb): Changed argument to number list.
(elmo-generic-folder-diff): Abolish argument.
(while flds
(setq cur-number (+ cur-number 1))
(when numlist
- (setq cur-numlist (car numlist-list))
- (if (null cur-numlist)
- ;; t means filter all.
- (setq cur-numlist t)))
+ (setq cur-numlist (car numlist-list)))
(setq ret-val (append
ret-val
(elmo-list-filter
))))
(defun elmo-list-filter (l1 l2)
- "L1 is filter."
- (if (eq l1 t)
- ;; t means filter all.
- nil
- (if l1
- (elmo-delete-if (lambda (x) (not (memq x l1))) l2)
- ;; filter is nil
- l2)))
+ "Rerurn a list from L2 in which each element is a member of L1."
+ (elmo-delete-if (lambda (x) (not (memq x l1))) l2))
(defsubst elmo-list-delete-if-smaller (list number)
(let ((ret-val (copy-sequence list)))