2002-01-24 Kenichi OKADA <okada@opaopa.org>
+ * wl-draft.el (wl-draft-prepare-edit): Use `wl-draft-save'.
+
+2002-01-24 Kenichi OKADA <okada@opaopa.org>
+
* wl-draft.el (wl-draft-insert-mail-header-separator): Use
`delete-backward-char'
(wl-draft-prepare-edit): Check major-mode.
(wl-draft-decode-body
content-type content-transfer-encoding))
(wl-draft-insert-mail-header-separator)
- (wl-draft-prepare-edit (interactive-p))
+ (wl-draft-prepare-edit)
+ (if (interactive-p)
+ (run-hooks 'wl-mail-setup-hook))
(goto-char (point-min))
(wl-user-agent-compose-internal) ;; user-agent
)))
(setq halist (cdr halist)))))
-(defun wl-draft-prepare-edit (&optional hook)
+(defun wl-draft-prepare-edit ()
(unless (eq major-mode 'wl-draft-mode)
(error "wl-draft-create-header must be use in wl-draft-mode."))
(let (change-major-mode-hook)
(wl-draft-editor-mode)
(wl-draft-overload-functions)
(wl-highlight-headers 'for-draft)
- (if hook (run-hooks 'wl-mail-setup-hook))
- (as-binary-output-file
- (write-region (point-min)(point-max) wl-draft-buffer-file-name
- nil t))))
-
+ (wl-draft-save)))
(defun wl-draft-decode-header ()
(save-excursion