* wl-summary.el (wl-summary-goto-folder-subr): Protect current
authoryoichi <yoichi>
Wed, 19 Jan 2005 11:42:00 +0000 (11:42 +0000)
committeryoichi <yoichi>
Wed, 19 Jan 2005 11:42:00 +0000 (11:42 +0000)
message (the condition is borrowed from `wl-check-variables-2').
(wl-summary-redisplay-internal): Ditto.

wl/ChangeLog
wl/wl-summary.el

index ff7a876..e79a2ee 100644 (file)
@@ -1,3 +1,9 @@
+2005-01-19  Yoichi NAKAYAMA  <yoichi@geiin.org>
+
+       * 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.
+
 2005-01-17  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * wl-mime.el (wl-draft-nntp-attribute): New function.
index 27c9026..506b4b1 100644 (file)
@@ -2514,7 +2514,8 @@ If ARG, without confirm."
              (wl-message-buffer-prefetch
               folder
               (wl-summary-message-number)
-              wl-message-buffer-prefetch-depth
+              (min wl-message-buffer-prefetch-depth
+                   (1- wl-message-buffer-cache-size))
               (current-buffer)
               wl-summary-buffer-mime-charset))
          (if mes (message "%s" mes))
@@ -4593,10 +4594,12 @@ If ARG is numeric number, decode message as following:
            (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
+          (min wl-message-buffer-prefetch-depth
+               (1- wl-message-buffer-cache-size))
+          (current-buffer)
+          wl-summary-buffer-mime-charset)
          (run-hooks 'wl-summary-redisplay-hook))
       (message "No message to display."))))