* wl-folder.el (wl-folder-open-close): Keep cursor on the line
authoryoichi <yoichi>
Sat, 22 May 2004 14:56:50 +0000 (14:56 +0000)
committeryoichi <yoichi>
Sat, 22 May 2004 14:56:50 +0000 (14:56 +0000)
after opening group.

wl/ChangeLog
wl/wl-folder.el

index f55575f..eb81de6 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-22  Yoichi NAKAYAMA  <yoichi@geiin.org>
+
+       * wl-folder.el (wl-folder-open-close): Keep cursor on the line
+       after opening group.
+
 2004-05-22  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * wl-draft.el (wl-draft-reply): Use set-buffer-multibyte instead
index 7767da2..3c2f6b6 100644 (file)
@@ -2588,19 +2588,18 @@ Use `wl-subscribed-mailing-list'."
   (interactive)
   (unless (wl-folder-get-entity-from-buffer)
     (error "No folder"))
-  (save-excursion
-    (beginning-of-line)
-    (if (wl-folder-buffer-group-p)
-       ;; if group (whether opend or closed.)
-       (wl-folder-jump-to-current-entity)
-      ;; if folder
-      (let (indent)
-       (setq indent (save-excursion
-                      (re-search-forward "\\([ ]*\\)." nil t)
-                      (wl-match-buffer 1)))
-       (while (looking-at indent)
-         (forward-line -1)))
-      (wl-folder-jump-to-current-entity))))
+  (beginning-of-line)
+  (if (wl-folder-buffer-group-p)
+      ;; if group (whether opend or closed.)
+      (wl-folder-jump-to-current-entity)
+    ;; if folder
+    (let (indent)
+      (setq indent (save-excursion
+                    (re-search-forward "\\([ ]*\\)." nil t)
+                    (wl-match-buffer 1)))
+      (while (looking-at indent)
+       (forward-line -1)))
+    (wl-folder-jump-to-current-entity)))
 
 (defsubst wl-folder-access-subscribe-p (group folder)
   (let (subscr regexp match)