* wl-message.el (wl-message-redisplay): Ignore errors while
authorteranisi <teranisi>
Tue, 30 Apr 2002 01:03:54 +0000 (01:03 +0000)
committerteranisi <teranisi>
Tue, 30 Apr 2002 01:03:54 +0000 (01:03 +0000)
wl-message-redisplay-hook.

wl/ChangeLog
wl/wl-message.el

index 2040370..7600124 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-30  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-message.el (wl-message-redisplay): Ignore errors while
+       wl-message-redisplay-hook.
+
 2002-04-27  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
 
        * wl-draft.el (wl-draft-mimic-kill-buffer): Don't save draft.
index 8df8c87..7e32690 100644 (file)
@@ -441,25 +441,21 @@ Returns non-nil if bottom of message."
     ;; highlight body
 ;    (when wl-highlight-body-too
 ;      (wl-highlight-body))
-    (condition-case ()
-       (wl-message-narrow-to-page)
-      (error nil)); ignore errors.
+    (ignore-errors (wl-message-narrow-to-page))
     (setq cache-used (cdr cache-used))
     (goto-char (point-min))
     (when (re-search-forward "^$" nil t)
       (wl-message-add-buttons-to-header (point-min) (point))
       (wl-message-add-buttons-to-body (point) (point-max)))
     (goto-char (point-min))
-    (unwind-protect
-       (save-excursion
-         (run-hooks 'wl-message-redisplay-hook))
-      ;; go back to summary mode
-      (set-buffer-modified-p nil)
-      (setq buffer-read-only t)
-      (set-buffer summary-buf)
-      (setq summary-win (get-buffer-window summary-buf))
-      (if (window-live-p summary-win)
-         (select-window summary-win)))
+    (ignore-errors (run-hooks 'wl-message-redisplay-hook))
+    ;; go back to summary mode
+    (set-buffer-modified-p nil)
+    (setq buffer-read-only t)
+    (set-buffer summary-buf)
+    (setq summary-win (get-buffer-window summary-buf))
+    (if (window-live-p summary-win)
+       (select-window summary-win))
     cache-used))
 
 ;; Use message buffer cache.