* wl-summary.el (wl-summary-target-mark-uudecode): Error when
authorokada <okada>
Wed, 19 Jul 2000 01:35:00 +0000 (01:35 +0000)
committerokada <okada>
Wed, 19 Jul 2000 01:35:00 +0000 (01:35 +0000)
begin-line does not exist.
* wl-message.el (wl-message-uu-substring): Ditto.

wl/ChangeLog
wl/wl-message.el
wl/wl-summary.el

index 05e5d12..bfa1509 100644 (file)
@@ -1,3 +1,9 @@
+2000-07-19  Kenichi OKADA      <okada@opaopa.org>
+
+       * wl-summary.el (wl-summary-target-mark-uudecode): Error when
+       begin-line does not exist.
+       * wl-message.el (wl-message-uu-substring): Ditto.
+
 2000-07-18  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * wl-summary.el (wl-summary-mode): Call `kill-all-local-variables' to
index 4746eea..e74bf6e 100644 (file)
     (search-forward "\n\n")
     (let ((sp (point))
          ep filename case-fold-search)
-      (if first
-         (progn
-           (re-search-forward "^begin[ \t]+[0-9]+[ \t]+\\([^ ].*\\)" nil t)
-           (setq filename (buffer-substring (match-beginning 1)(match-end 1))))
-       (re-search-forward "^M.*$" nil t)) ; uuencoded string
-      (beginning-of-line)
-      (setq sp (point))
-      (goto-char (point-max))
-      (if last
-         (re-search-backward "^end" sp t)
-        (re-search-backward "^M.*$" sp t)) ; uuencoded string
-      (forward-line 1)
-      (setq ep (point))
-      (set-buffer outbuf)
-      (goto-char (point-max))
-      (insert-buffer-substring buf sp ep)
-      (set-buffer buf)
-      filename)))
+      (catch 'done
+       (if first
+           (progn
+             (if (re-search-forward "^begin[ \t]+[0-9]+[ \t]+\\([^ ].*\\)" nil t)
+                 (setq filename (buffer-substring (match-beginning 1)(match-end 1)))
+               (throw 'done nil)))
+         (re-search-forward "^M.*$" nil t)) ; uuencoded string
+       (beginning-of-line)
+       (setq sp (point))
+       (goto-char (point-max))
+       (if last
+           (re-search-backward "^end" sp t)
+         (re-search-backward "^M.*$" sp t)) ; uuencoded string
+       (forward-line 1)
+       (setq ep (point))
+       (set-buffer outbuf)
+       (goto-char (point-max))
+       (insert-buffer-substring buf sp ep)
+       (set-buffer buf)
+       filename))))
 
 ;;; wl-message.el ends here
+
+
index 6b71cca..e29d507 100644 (file)
@@ -5928,9 +5928,11 @@ Reply to author if invoked with argument."
        (set-buffer (setq orig-buf (wl-message-get-original-buffer)))
        (goto-char (point-min))
        (cond ((= i 1) ; first
-              (setq filename (wl-message-uu-substring 
-                              orig-buf tmp-buf t 
-                              (= i k))))
+              (if (setq filename (wl-message-uu-substring 
+                                  orig-buf tmp-buf t 
+                                  (= i k)))
+                  nil
+                (error "Can't find begin line.")))
              ((< i k)
               (wl-message-uu-substring orig-buf tmp-buf))
              (t ; last