+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
(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
+
+
(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