2002-01-23 Kenichi OKADA <okada@opaopa.org>
+ * wl-vars.el (wl-message-buffer-prefetch-threshold): New variable.
* wl-message.el (wl-message-buffer-prefetch-get-next): Use
- `wl-cache-prefetch-threshold'.
+ `wl-message-buffer-prefetch-threshold'.
* wl-summary.el (wl-summary-redisplay-internal): Remove
the check of `wl-message-buffer-prefetch-depth'.
(with-current-buffer summary
(let* ((next (funcall wl-message-buffer-prefetch-get-next-function
number))
- (size (elmo-message-field folder next 'size))
- (threshold (or wl-cache-prefetch-threshold
- elmo-message-fetch-threshold)))
+ (size (elmo-message-field folder next 'size)))
(if next
(cond
((not (wl-message-buffer-prefetch-p folder next))
folder next summary))
((and (not (elmo-message-file-p folder next))
(integerp size)
- (integerp threshold)
- (>= size threshold))
+ wl-message-buffer-prefetch-threshold
+ (>= size wl-message-buffer-prefetch-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)
- (wl-message-buffer-prefetch-next folder num
- wl-message-buffer-prefetch-depth
- (current-buffer)
- wl-summary-buffer-mime-charset))
+ (wl-message-buffer-prefetch-next folder num
+ wl-message-buffer-prefetch-depth
+ (current-buffer)
+ wl-summary-buffer-mime-charset)
(run-hooks 'wl-summary-redisplay-hook))
(message "No message to display."))))
:group 'wl-pref
:group 'wl-setting)
-(defcustom wl-cache-prefetch-threshold 30000
- "*Quit forward cache prefetching if message size is larger than this value."
- :type 'integer
- :group 'wl-pref)
-
(defcustom wl-thread-insert-opened nil
"*Non-nil forces to insert thread as opened in updating."
:type 'boolean
:type 'number
:group 'wl-pref)
+(defcustom wl-message-buffer-prefetch-threshold 30000
+ "*Quit forward cache prefetching if message size is larger than this value."
+ :type 'integer
+ :group 'wl-pref)
+
(defcustom wl-summary-always-sticky-folder-list nil
"All folders that match this list has sticky summary.
Each elements are regexp of folder name."