+2006-08-25 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-util.el (elmo-flatten): Use `append' and `listp' instead of
+ `nconc' and `consp'.
+
2006-08-23 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-map.el (elmo-map-folder-update-locations): Rewrite with
(defun elmo-flatten (list-of-list)
"Flatten LIST-OF-LIST."
- (if list-of-list
- (apply #'nconc
- (mapcar (lambda (element)
- (if (consp element) element (list element)))
- list-of-list))))
+ (and list-of-list
+ (apply #'append
+ (mapcar (lambda (element)
+ (if (listp element) element (list element)))
+ list-of-list))))
(defun elmo-y-or-n-p (prompt &optional auto default)
"Same as `y-or-n-p'.