2010-01-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
+ * wl-util.el (wl-collect-summary, wl-kill-buffers): Use `mapc'
+ instead of `mapcar'. Don't use `function' for lambda.
+ (wl-read-search-condition-internal): Don't use `function' for
+ lambda.
+
* wl-draft.el (wl-draft-reply): Use `elmo-parse' instead of `wl-parse'.
* wl-draft.el (wl-draft-do-fcc): Use `with-temp-buffer'.
nil nil))))))
(defmacro wl-kill-buffers (regexp)
- `(mapcar (function
- (lambda (x)
- (if (and (buffer-name x)
- (string-match ,regexp (buffer-name x)))
- (and (get-buffer x)
- (kill-buffer x)))))
- (buffer-list)))
+ `(mapc
+ (lambda (x)
+ (if (and (buffer-name x)
+ (string-match ,regexp (buffer-name x)))
+ (and (get-buffer x)
+ (kill-buffer x)))))
+ (buffer-list))
(defun wl-collect-summary ()
(let (result)
- (mapcar
- (function (lambda (x)
- (if (and (string-match "^Summary"
- (buffer-name x))
- (with-current-buffer x
- (eq major-mode 'wl-summary-mode)))
- (setq result (nconc result (list x))))))
+ (mapc
+ (lambda (x)
+ (if (and (string-match "^Summary"
+ (buffer-name x))
+ (with-current-buffer x
+ (eq major-mode 'wl-summary-mode)))
+ (setq result (nconc result (list x)))))
(buffer-list))
result))
(let ((default (format-time-string "%Y-%m-%d")))
(setq value (completing-read
(format "Value for '%s' [%s]: " field default)
- (mapcar (function
- (lambda (x)
- (list (format "%s" (car x)))))
- elmo-date-descriptions)))
+ (mapcar
+ (lambda (x)
+ (list (format "%s" (car x))))
+ elmo-date-descriptions)))
(concat (downcase field) ":"
(if (equal value "") default value))))
((string-match "!?Flag" field)