# HG changeset patch # User ShengHuo ZHU # Date 977674411 0 # Node ID 5963423783587d060f21c5315e6d48e3885b5930 # Parent 6c93e7d6a9307e1e7477ae1d706c8bf97f5f797c * message.el (message-mail): Support yank-action. * message.el (message-setup): Revoke the last change. diff -r 6c93e7d6a930 -r 596342378358 lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Sun Dec 24 06:36:33 2000 +0000 +++ b/lisp/gnus/ChangeLog Sun Dec 24 16:13:31 2000 +0000 @@ -1,3 +1,9 @@ +2000-12-24 11:00:00 ShengHuo ZHU + + * message.el (message-mail): Support yank-action. + + * message.el (message-setup): Revoke the last change. + 2000-12-24 01:00:00 ShengHuo ZHU * message.el (message-setup): Use cons. Suggested by Johan Vromans diff -r 6c93e7d6a930 -r 596342378358 lisp/gnus/message.el --- a/lisp/gnus/message.el Sun Dec 24 06:36:33 2000 +0000 +++ b/lisp/gnus/message.el Sun Dec 24 16:13:31 2000 +0000 @@ -3595,7 +3595,7 @@ (if (not (and message-this-is-mail mua)) (message-setup-1 headers replybuffer actions) (if replybuffer - (setq yank-action (cons 'insert-buffer replybuffer))) + (setq yank-action (list 'insert-buffer replybuffer))) (setq headers (copy-sequence headers)) (setq field (assq 'Subject headers)) (when field @@ -3728,13 +3728,20 @@ "Start editing a mail message to be sent. OTHER-HEADERS is an alist of header/value pairs." (interactive) - (let ((message-this-is-mail t)) + (let ((message-this-is-mail t) replybuffer) (unless (message-mail-user-agent) (message-pop-to-buffer (message-buffer-name "mail" to))) + ;; FIXME: message-mail should do something if YANK-ACTION is not + ;; insert-buffer. + (and (consp yank-action) (eq (car yank-action) 'insert-buffer) + (setq replybuffer (nth 1 yank-action))) (message-setup (nconc `((To . ,(or to "")) (Subject . ,(or subject ""))) - (when other-headers other-headers))))) + (when other-headers other-headers)) + replybuffer) + ;; FIXME: Should return nil if failure. + t)) ;;;###autoload (defun message-news (&optional newsgroups subject)