2001-10-15 NAKAJIMA Mikio <minakaji@osaka.email.ne.jp>
authorkaoru <kaoru>
Mon, 15 Oct 2001 04:37:10 +0000 (04:37 +0000)
committerkaoru <kaoru>
Mon, 15 Oct 2001 04:37:10 +0000 (04:37 +0000)
* wl-summary.el (wl-summary-jump-to-msg): Search before
calibration point by `beginning-of-line'.

wl/ChangeLog
wl/wl-summary.el

index a90629b..51be457 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-15  NAKAJIMA Mikio  <minakaji@osaka.email.ne.jp>
+
+       * wl-summary.el (wl-summary-jump-to-msg): Search before
+       calibration point by `beginning-of-line'.
+
 2001-10-05  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
 
        * wl-draft.el (wl-draft): Make truncate-partial-width-windows
index 1296ba6..0d429a3 100644 (file)
@@ -2425,15 +2425,11 @@ If ARG is non-nil, checking is omitted."
                 (string-to-int
                  (read-from-minibuffer "Jump to Message(No.): ")))))
     (setq num (int-to-string num))
-    (if (re-search-forward (concat "^[ \t]*" num "[^0-9]") nil t)
-       (progn
-         (beginning-of-line)
-         t)
-      (if (re-search-backward (concat "^[ \t]*" num "[^0-9]") nil t)
-         (progn
-           (beginning-of-line)
-           t)
-       nil))))
+    (beginning-of-line)
+    (if (or (re-search-forward (concat "^[ \t]*" num "[^0-9]") nil t)
+           (re-search-backward (concat "^[ \t]*" num "[^0-9]") nil t))
+       (progn (beginning-of-line) t)
+      nil)))
 
 (defun wl-summary-highlight-msgs (msgs)
   (save-excursion