guess anything, call wl-summary-write interactively.
* wl-draft.el (wl-draft): Undo corresponding part of the last
change (the blank To header).
2002-03-17 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+ * wl-summary.el (wl-summary-write-current-folder): If it cannot
+ guess anything, call wl-summary-write interactively.
+ * wl-draft.el (wl-draft): Undo corresponding part of the last
+ change (the blank To header).
+
+2002-03-17 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+
* wl-draft.el (wl-draft): Call wl-draft-create-buffer with the
argument full as well for wl-folder-write-current-folder.
If wl-*-write-current-folder cannot guess addressee, add blank
(unless (cdr (assq 'To header-alist))
(let ((to))
(when (setq to (and
- (or (interactive-p)
- (eq this-command 'wl-summary-write)
- (and
- (null (cdr (assq 'Newsgroups header-alist)))
- (or
- (eq this-command
- 'wl-summary-write-current-folder)
- (eq this-command
- 'wl-folder-write-current-folder))))
+ (interactive-p)
""))
(if (assq 'To header-alist)
(setcdr (assq 'To header-alist) to)
(defun wl-summary-write ()
"Write a new draft from Summary."
(interactive)
- (wl-draft nil nil nil nil nil
- (wl-summary-buffer-folder-name))
+ (wl-draft (list (cons 'To ""))
+ nil nil nil nil (wl-summary-buffer-folder-name))
(run-hooks 'wl-mail-setup-hook)
(mail-position-on-field "To"))
(setq guess-func (car func-list))
(setq func-list nil)))
(if (null guess-func)
- (wl-draft)
+ (call-interactively 'wl-summary-write)
(unless (or (stringp (nth 0 guess-list))
(stringp (nth 1 guess-list))
(stringp (nth 2 guess-list)))