2004-05-17 Yoichi NAKAYAMA <yoichi@geiin.org>
+ * wl-draft.el (wl-draft-insert-current-message): Cause error also
+ when wl-message-buffer is nil.
+
* wl-folder.el (wl-folder): Abolish unused argument.
Call wl-folder-init when wl-folder-entity is nil.
* wl.el (wl): Change accordingly.
wl-draft-add-references wl-draft-add-in-reply-to
wl-draft-cite-function)
(with-current-buffer wl-draft-buffer-cur-summary-buffer
- (with-current-buffer wl-message-buffer
- (setq original-buffer (wl-message-get-original-buffer))
- (if (zerop
- (with-current-buffer original-buffer
- (buffer-size)))
- (error "No current message"))))
+ (when (or (not wl-message-buffer)
+ (with-current-buffer wl-message-buffer
+ (setq original-buffer (wl-message-get-original-buffer))
+ (zerop (with-current-buffer original-buffer
+ (buffer-size)))))
+ (error "No current message")))
(setq mail-reply-buffer original-buffer)
(wl-draft-yank-from-mail-reply-buffer
nil