* wl-draft.el (wl-draft-add-in-reply-to, wl-draft-delete): Ditto.
* wl-draft.el (wl-draft-send-mail-with-smtp, wl-draft-send)
(wl-draft-do-fcc): Ditto.
+ * wl-draft.el (wl-draft-generate-clone-buffer)
+ (wl-draft-config-exec): Ditto.
* wl-score.el (wl-score-insert-help, wl-score-edit-get-header)
(wl-score-edit-insert-number): Ditto.
(defun wl-draft-generate-clone-buffer (name &optional local-variables)
"Generate clone of current buffer named NAME."
(let ((editing-buffer (current-buffer)))
- (save-excursion
- (set-buffer (generate-new-buffer name))
+ (with-current-buffer (generate-new-buffer name)
(erase-buffer)
(wl-draft-mode)
(wl-draft-editor-mode)
(while local-variables
(make-local-variable (car local-variables))
(set (car local-variables)
- (save-excursion
- (set-buffer editing-buffer)
+ (with-current-buffer editing-buffer
(symbol-value (car local-variables))))
(setq local-variables (cdr local-variables)))
(current-buffer))))
((eq key 'reply)
(when (and
reply-buf
- (save-excursion
- (set-buffer reply-buf)
+ (with-current-buffer reply-buf
(save-restriction
(std11-narrow-to-header)
(goto-char (point-min))