* wl-message.el (wl-message-normal-get-original-buffer): Use
authorokazaki <okazaki>
Sat, 3 Jun 2000 11:58:19 +0000 (11:58 +0000)
committerokazaki <okazaki>
Sat, 3 Jun 2000 11:58:19 +0000 (11:58 +0000)
`save-excursion'.

wl/wl-message.el

index b98418c..e8ec543 100644 (file)
        (setq wl-message-buffer-cur-summary-buffer sum-buf)))))
 
 (defun wl-message-normal-get-original-buffer ()
-  (let (ret-val)
-    (if (setq ret-val (get-buffer wl-original-buf-name))
-       ret-val
-      (set-buffer (setq ret-val 
-                       (get-buffer-create wl-original-buf-name)))
-      (wl-message-original-mode)
-      ret-val)))
+  (let ((ret-val (get-buffer wl-original-buf-name)))
+    (if (not ret-val)
+       (save-excursion
+         (set-buffer (setq ret-val 
+                           (get-buffer-create wl-original-buf-name)))
+         (wl-message-original-mode)))
+    ret-val))
 
 
 (if wl-use-semi