From: yoichi Date: Mon, 17 May 2004 15:20:41 +0000 (+0000) Subject: * wl-draft.el (wl-draft-insert-current-message): Also check X-Git-Tag: wl-2_11_29~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c17f56f6136b06fcc0342ca1b48a0c7e2a97ae23;p=elisp%2Fwanderlust.git * wl-draft.el (wl-draft-insert-current-message): Also check summary buffer, remove unnecessary tag. --- diff --git a/wl/ChangeLog b/wl/ChangeLog index 0787123..08d4aac 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,8 @@ +2004-05-18 Yoichi NAKAYAMA + + * wl-draft.el (wl-draft-insert-current-message): Also check + summary buffer, remove unnecessary tag. + 2004-05-17 Yoichi NAKAYAMA * wl-draft.el (wl-draft-insert-current-message): Cause error also diff --git a/wl/wl-draft.el b/wl/wl-draft.el index e941803..3d53e37 100644 --- a/wl/wl-draft.el +++ b/wl/wl-draft.el @@ -637,17 +637,22 @@ Reply to author if WITH-ARG is non-nil." mail-citation-hook mail-yank-hooks wl-draft-add-references wl-draft-add-in-reply-to wl-draft-cite-function) - (with-current-buffer wl-draft-buffer-cur-summary-buffer - (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 - wl-ignored-forwarded-headers))) + (if (and wl-draft-buffer-cur-summary-buffer + (with-current-buffer wl-draft-buffer-cur-summary-buffer + (and wl-message-buffer + (with-current-buffer wl-message-buffer + (setq original-buffer (wl-message-get-original-buffer)) + (not (zerop (with-current-buffer original-buffer + (buffer-size)))))))) + (progn + (setq mail-reply-buffer original-buffer) + (wl-draft-yank-from-mail-reply-buffer + nil + wl-ignored-forwarded-headers)) + (when (string= (mime-make-tag "message" "rfc822") + (buffer-substring-no-properties (point-at-bol 0)(point-at-eol 0))) + (delete-region (point-at-bol 0) (1+ (point-at-eol 0)))) + (error "No current message")))) (defun wl-draft-insert-get-message (dummy) (let ((fld (completing-read