* wl-summary.el (wl-summary-cursor-move-surface): Avoid error on
authoryoichi <yoichi>
Wed, 26 May 2004 14:09:10 +0000 (14:09 +0000)
committeryoichi <yoichi>
Wed, 26 May 2004 14:09:10 +0000 (14:09 +0000)
the last line of summary in unplugged mode.

wl/ChangeLog
wl/wl-summary.el

index ac23dc7..84bebd3 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-26  Yoichi NAKAYAMA  <yoichi@geiin.org>
+
+       * wl-summary.el (wl-summary-cursor-move-surface): Avoid error on
+       the last line of summary in unplugged mode.
+
 2004-05-26  Tetsurou Okazaki  <okazaki@be.to>
 
        * wl-vars.el (wl-refile-rule-alist): Doc fix.
index 8f0e651..53de457 100644 (file)
@@ -4199,9 +4199,10 @@ Use function list is `wl-summary-write-current-folder-functions'."
        (forward-line -1))
       (setq skip (or (string-match skip-tmark-regexp
                                   (wl-summary-temp-mark))
-                    (not (elmo-message-accessible-p
-                          wl-summary-buffer-elmo-folder
-                          (wl-summary-message-number))))))
+                    (not (and (wl-summary-message-number)
+                              (elmo-message-accessible-p
+                               wl-summary-buffer-elmo-folder
+                               (wl-summary-message-number)))))))
     (if (if downward (eobp) (and (bobp) skip)) (setq goto-next t))
     (if (or (eobp) (and (bobp) skip))
        (goto-char start))