`wl-cache-prefetch-threshold'.
* wl-summary.el (wl-summary-redisplay-internal): Remove
the check of `wl-message-buffer-prefetch-depth'.
2002-01-23 Kenichi OKADA <okada@opaopa.org>
+ * wl-message.el (wl-message-buffer-prefetch-get-next): Use
+ `wl-cache-prefetch-threshold'.
+ * wl-summary.el (wl-summary-redisplay-internal): Remove
+ the check of `wl-message-buffer-prefetch-depth'.
+
+2002-01-23 Kenichi OKADA <okada@opaopa.org>
+
* wl-message.el (wl-message-buffer-prefetch-get-next): Check the
size of article.
(wl-message-buffer-prefetch-subr): Remove size check.
(with-current-buffer summary
(let* ((next (funcall wl-message-buffer-prefetch-get-next-function
number))
- (size (elmo-message-field folder next 'size)))
+ (size (elmo-message-field folder next 'size))
+ (threshold (or wl-cache-prefetch-threshold
+ elmo-message-fetch-threshold)))
+ (unless (and (integerp size)
+ (integerp threshold))
+ (debug))
(if next
(cond
((not (wl-message-buffer-prefetch-p folder next))
folder next summary))
((and (not (elmo-message-file-p folder next))
(integerp size)
- elmo-message-fetch-threshold
- (>= size
- elmo-message-fetch-threshold))
+ (integerp threshold)
+ (>= size threshold))
(wl-message-buffer-prefetch-get-next
folder next summary))
(t
(if (not wl-summary-indent-length-limit)
(wl-horizontal-recenter)))
(wl-highlight-summary-displaying)
- (when wl-message-buffer-prefetch-depth
- (if (not (< wl-message-buffer-prefetch-depth
- wl-message-buffer-cache-size))
- (error (concat
- "`wl-message-buffer-prefetch-depth' must be smaller than "
- "`wl-message-buffer-cache-size' - 1.")))
(wl-message-buffer-prefetch-next folder num
wl-message-buffer-prefetch-depth
(current-buffer)