* wl-draft.el (wl-draft-do-mime-bcc): Use generate-new-buffer and
authorteranisi <teranisi>
Mon, 20 May 2002 13:24:14 +0000 (13:24 +0000)
committerteranisi <teranisi>
Mon, 20 May 2002 13:24:14 +0000 (13:24 +0000)
 insert-buffer instead of clone-buffer.

wl/ChangeLog
wl/wl-draft.el

index 343eb75..f7fcba4 100644 (file)
@@ -1,5 +1,8 @@
 2002-05-20  Yuuichi Teranishi  <teranisi@gohome.org>
 
+       * wl-draft.el (wl-draft-do-mime-bcc): Use generate-new-buffer and
+       insert-buffer instead of clone-buffer.
+
        * wl-vars.el (wl-draft-mime-bcc-field-name): New user option.
        (wl-draft-mime-bcc-body): Ditto.
 
index 277b4eb..990ddb0 100644 (file)
@@ -1294,9 +1294,12 @@ If KILL-WHEN-DONE is non-nil, current draft buffer is killed"
   "Send MIME-Bcc (Encapsulated blind carbon copy)."
   (let ((orig-subj (std11-field-body "subject"))
        (recipients (wl-parse-addresses field-body))
+       (draft-buffer (current-buffer))
        buffer)
     (when (not (zerop (length field-body)))
-      (setq buffer (clone-buffer " *temporary buffer for mime bcc*"))
+      (with-current-buffer (setq buffer (generate-new-buffer 
+                                        " *temporary buffer for mime bcc*"))
+       (insert-buffer draft-buffer))
       (unwind-protect
          (dolist (recipient recipients)
            (with-temp-buffer