* wl-folder.el (wl-folder-set-current-entity-id): Enclose by
authoryoichi <yoichi>
Sun, 12 Jan 2003 13:29:26 +0000 (13:29 +0000)
committeryoichi <yoichi>
Sun, 12 Jan 2003 13:29:26 +0000 (13:29 +0000)
save-current-buffer.

wl/ChangeLog
wl/wl-folder.el

index 30b8fc3..b57d899 100644 (file)
@@ -3,6 +3,7 @@
        * wl-folder.el (wl-folder-empty-trash): Set and show up summary
        buffer after calling `wl-summary-goto-folder-subr' without the
        argument `interactive'.
+       (wl-folder-set-current-entity-id): Enclose by save-current-buffer.
 
 2003-01-12  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
index 7a425cb..f93ceda 100644 (file)
@@ -957,17 +957,18 @@ Optional argument ARG is repeart count."
   (let* ((buf (get-buffer wl-folder-buffer-name))
         (buf-win (get-buffer-window buf)))
     (if buf
-       (save-selected-window
-         (if buf-win
-             (select-window buf-win)
-           (set-buffer buf))
-         (setq wl-folder-buffer-cur-entity-id entity-id)
-         (setq wl-folder-buffer-cur-path (wl-folder-get-path wl-folder-entity
-                                                             entity-id))
-         (wl-highlight-folder-path wl-folder-buffer-cur-path)
-         (and wl-folder-move-cur-folder
-              wl-folder-buffer-cur-point
-              (goto-char wl-folder-buffer-cur-point))))))
+       (save-current-buffer
+         (save-selected-window
+           (if buf-win
+               (select-window buf-win)
+             (set-buffer buf))
+           (setq wl-folder-buffer-cur-entity-id entity-id)
+           (setq wl-folder-buffer-cur-path (wl-folder-get-path wl-folder-entity
+                                                               entity-id))
+           (wl-highlight-folder-path wl-folder-buffer-cur-path)
+           (and wl-folder-move-cur-folder
+                wl-folder-buffer-cur-point
+                (goto-char wl-folder-buffer-cur-point)))))))
 
 (defun wl-folder-check-current-entity ()
   "Check folder at position.