- (let* ((top-list (wl-thread-get-parent-list top-list))
- (num (length top-list))
- (i 0)
- beg)
- (while top-list
- (when (> num elmo-display-progress-threshold)
- (setq i (1+ i))
- (when (or (zerop (% i 5)) (= i num))
- (elmo-display-progress
- 'wl-thread-update-indent-string-thread
- "Updating thread indent..."
- (/ (* i 100) num))))
- (when (car top-list)
- (wl-summary-jump-to-msg (car top-list))
- (setq beg (point))
- (wl-thread-goto-bottom-of-sub-thread)
- (wl-thread-update-indent-string-region beg (point)))
- (setq top-list (cdr top-list)))
- (message "Updating thread indent...done")))
+ (let ((top-list (wl-thread-get-parent-list top-list))
+ beg)
+ (elmo-with-progress-display
+ (wl-thread-update-indent-string-thread (length top-list))
+ "Updating thread indent"
+ (while top-list
+ (when (car top-list)
+ (wl-summary-jump-to-msg (car top-list))
+ (setq beg (point))
+ (wl-thread-goto-bottom-of-sub-thread)
+ (wl-thread-update-indent-string-region beg (point)))
+ (elmo-progress-notify 'wl-thread-update-indent-string-thread)
+ (setq top-list (cdr top-list))))))