+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
+ To header.
+ Rewrite condition for positioning cursor.
+
2002-03-15 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* wl-folder.el (wl-folder-jump-to-next-summary): If the window of
(or
(eq this-command 'wl-draft)
(eq this-command 'wl-summary-write)
- (eq this-command 'wl-summary-write-current-folder))
+ (eq this-command 'wl-summary-write-current-folder)
+ (eq this-command 'wl-folder-write-current-folder))
parent-folder))
(unless (cdr (assq 'From header-alist))
(let ((to))
(when (setq to (and
(or (interactive-p)
- (eq this-command 'wl-summary-write))
+ (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))))
""))
(if (assq 'To header-alist)
(setcdr (assq 'To header-alist) to)
(run-hooks 'wl-mail-setup-hook))
(goto-char (point-min))
(wl-user-agent-compose-internal) ;; user-agent
- (cond ((eq this-command 'wl-summary-write-current-newsgroup)
- (mail-position-on-field "Subject"))
- ((and (interactive-p)
- (null (assq 'To header-alist)))
+ (cond ((and
+ (or (interactive-p)
+ (eq this-command 'wl-summary-write)
+ (eq this-command 'wl-summary-write-current-folder)
+ (eq this-command 'wl-folder-write-current-folder))
+ (string= (cdr (assq 'To header-alist)) ""))
(mail-position-on-field "To"))
+ ((or (eq this-command 'wl-summary-write-current-folder)
+ (eq this-command 'wl-folder-write-current-folder))
+ (mail-position-on-field "Subject"))
(t
(goto-char (point-max))))
buf-name))