* wl-summary.el (wl-summary-goto-folder-subr): Avoid error for
authoryoichi <yoichi>
Wed, 19 Jan 2005 15:44:17 +0000 (15:44 +0000)
committeryoichi <yoichi>
Wed, 19 Jan 2005 15:44:17 +0000 (15:44 +0000)
`wl-message-buffer-prefetch-depth' is nil though it is illegal.
(wl-summary-redisplay-internal): Ditto.

wl/ChangeLog
wl/wl-summary.el

index e79a2ee..41e36ac 100644 (file)
@@ -1,5 +1,9 @@
 2005-01-19  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
+       * wl-summary.el (wl-summary-goto-folder-subr): Avoid error for
+       `wl-message-buffer-prefetch-depth' is nil though it is illegal.
+       (wl-summary-redisplay-internal): Ditto.
+
        * wl-summary.el (wl-summary-goto-folder-subr): Protect current
        message (the condition is borrowed from `wl-check-variables-2').
        (wl-summary-redisplay-internal): Ditto.
index 506b4b1..de8f6a5 100644 (file)
@@ -2514,7 +2514,7 @@ If ARG, without confirm."
              (wl-message-buffer-prefetch
               folder
               (wl-summary-message-number)
-              (min wl-message-buffer-prefetch-depth
+              (min (or wl-message-buffer-prefetch-depth 0)
                    (1- wl-message-buffer-cache-size))
               (current-buffer)
               wl-summary-buffer-mime-charset))
@@ -4596,7 +4596,7 @@ If ARG is numeric number, decode message as following:
          (wl-highlight-summary-displaying)
          (wl-message-buffer-prefetch-next
           folder num
-          (min wl-message-buffer-prefetch-depth
+          (min (or wl-message-buffer-prefetch-depth 0)
                (1- wl-message-buffer-cache-size))
           (current-buffer)
           wl-summary-buffer-mime-charset)