+2002-01-19 Kenichi OKADA <okada@opaopa.org>
+
+ * wl-vars.el (wl-message-buffer-prefetch-depth): Default is 3.
+ wl.el (wl-check-variables): Rename from `wl-check-type'.
+ (wl-check-variables-alist): Rename from `wl-check-type-variables'.
+ (wl-check-variables-2): New function.
+ (wl): Call `wl-check-variables-2'.
+
2002-01-19 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* wl-fldmgr.el (wl-fldmgr-rename): Fixed around message appear
(when (sit-for wl-message-buffer-prefetch-idle-time)
(wl-message-buffer-prefetch
folder next count summary charset))
+ (setq wl-message-buffer-prefetch-timer nil)
(unless wl-message-buffer-prefetch-timer
(setq wl-message-buffer-prefetch-timer
(run-with-idle-timer
(make-directory wl-temporary-file-directory)
(error "Temp directory is not created"))))))
-(defconst wl-check-type-variables
+(defconst wl-check-variables-alist
'((numberp . elmo-pop3-default-port)
(symbolp . elmo-pop3-default-authenticate-type)
(numberp . elmo-imap4-default-port)
(numberp . wl-pop-before-smtp-port)
(symbolp . wl-pop-before-smtp-authenticate-type)))
-(defun wl-check-type ()
- (let ((type-variables wl-check-type-variables)
+(defun wl-check-variables ()
+ (let ((type-variables wl-check-variables-alist)
type)
(while (setq type (car type-variables))
(if (and (eval (cdr type))
(eval (cdr type))))
(setq type-variables (cdr type-variables)))))
+(defun wl-check-variables-2 ()
+ (if (< wl-message-buffer-cache-size 1)
+ (error "`wl-message-buffer-cache-size' must be larger than 0."))
+ (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.")))))
+
;;;###autoload
(defun wl (&optional arg)
"Start Wanderlust -- Yet Another Message Interface On Emacsen.
(wl-check-environment arg)
(message "Checking environment...done")
(message "Checking type of variables...")
- (wl-check-type)
+ (wl-check-variables)
+ (wl-check-variables-2)
(message "Checking type of variables...done")))
(wl-plugged-init (wl-folder arg))
(unless arg