* wl-message.el (wl-message-buffer-display): Back to the first page
authorkaoru <kaoru>
Mon, 30 Dec 2002 01:13:51 +0000 (01:13 +0000)
committerkaoru <kaoru>
Mon, 30 Dec 2002 01:13:51 +0000 (01:13 +0000)
when cache is hit.

wl/wl-message.el

index 6ce3e1e..c094061 100644 (file)
@@ -481,6 +481,10 @@ Returns non-nil if bottom of message."
          ;; buffer cache is used.
          (setq cache-used t)
          (with-current-buffer hit
+           ;; Rewind to the top page
+           (widen)
+           (goto-char (point-min))
+           (ignore-errors (wl-message-narrow-to-page))
            (unless (eq wl-message-buffer-cur-flag flag)
              (setq read t))))
       ;; delete tail and add new to the top.