2001-05-08 Kenichi OKADA <okada@opaopa.org>
+ * wl-folder.el (wl-folder-prefetch-entity): Use
+ `wl-folder-get-elmo-folder'.
+ (wl-folder-count-incorporates): Do not use
+ `wl-folder-get-elmo-folder'.
+
+2001-05-08 Kenichi OKADA <okada@opaopa.org>
+
* wl-xmas.el (wl-plugged-set-folder-icon): Use `elmo-folder-type'
instead of `elmo-folder-get-type'.
(wl-folder-get-petname (car entity)))
(cons sum-done sum-all)))
((stringp entity)
- (let ((nums (wl-folder-get-entity-info entity))
- (wl-summary-highlight (if (or (wl-summary-sticky-p entity)
- (wl-summary-always-sticky-folder-p
- entity))
- wl-summary-highlight))
- wl-summary-exit-next-move
- wl-auto-select-first ret-val
- count)
+ (let* ((folder (wl-folder-get-elmo-folder entity))
+ (nums (wl-folder-get-entity-info entity))
+ (wl-summary-highlight (if (or (wl-summary-sticky-p folder)
+ (wl-summary-always-sticky-folder-p
+ folder))
+ wl-summary-highlight))
+ wl-summary-exit-next-move
+ wl-auto-select-first ret-val
+ count)
(setq count (or (car nums) 0))
- (setq count (+ count (wl-folder-count-incorporates entity)))
+ (setq count (+ count (wl-folder-count-incorporates folder)))
(if (or (null (car nums)) ; unknown
(< 0 count))
(save-window-excursion
(symbol-name this-command))))
(wl-summary-goto-folder-subr entity
(wl-summary-get-sync-range
- (wl-folder-get-elmo-folder entity))
+ folder)
nil)
(setq ret-val (wl-summary-incorporate))
(wl-summary-exit)
(defun wl-folder-count-incorporates (folder)
(let ((marks (elmo-msgdb-mark-load
- (elmo-folder-msgdb-path
- (wl-folder-get-elmo-folder folder))))
+ (elmo-folder-msgdb-path folder)))
(sum 0))
(while marks
(if (member (cadr (car marks))