(wl-summary-define-mark-action): Functions wl-summary-*-region
authoryoichi <yoichi>
Sat, 26 Jul 2003 11:34:19 +0000 (11:34 +0000)
committeryoichi <yoichi>
Sat, 26 Jul 2003 11:34:19 +0000 (11:34 +0000)
keep current position.

wl/ChangeLog
wl/wl-action.el

index 30ed0a6..5568e07 100644 (file)
@@ -2,6 +2,8 @@
 
        * wl-action.el (wl-summary-action-docstring): Add more info.
        (wl-summary-target-mark-region): Remove duplicate definition.
+       (wl-summary-define-mark-action): Functions wl-summary-*-region
+       keep current position.
 
 2003-07-24  Yuuichi Teranishi  <teranisi@gohome.org>
 
index bfbf3ed..7c45b21 100644 (file)
@@ -358,16 +358,17 @@ Return number if put mark succeed"
          `(lambda (beg end)
             ,(wl-summary-action-docstring action)
             (interactive "r")
-            (goto-char beg)
-            (wl-summary-mark-region-subr
-             (quote ,(intern (format "wl-summary-%s"
-                                     (wl-summary-action-symbol action))))
-             beg end
-             (if (quote ,(wl-summary-action-argument-function action))
-                 (funcall (function 
-                           ,(wl-summary-action-argument-function action))
-                          (quote ,(wl-summary-action-symbol action))
-                          (wl-summary-message-number))))))
+            (save-excursion
+              (goto-char beg)
+              (wl-summary-mark-region-subr
+               (quote ,(intern (format "wl-summary-%s"
+                                       (wl-summary-action-symbol action))))
+               beg end
+               (if (quote ,(wl-summary-action-argument-function action))
+                   (funcall (function
+                             ,(wl-summary-action-argument-function action))
+                            (quote ,(wl-summary-action-symbol action))
+                            (wl-summary-message-number)))))))
     (fset (intern (format "wl-summary-target-mark-%s"
                          (wl-summary-action-symbol action)))
          `(lambda ()