diff options
author | Miles Bader <[email protected]> | 2008-05-18 22:43:12 +0000 |
---|---|---|
committer | Miles Bader <[email protected]> | 2008-05-18 22:43:12 +0000 |
commit | 03c673c9f4e65bacf224c3010c4c36997fb0a9f0 (patch) | |
tree | f7dbc4af4dfaf3462280c588a90c091c36e64bc7 /lisp/gnus/mml.el | |
parent | a019dc407dcf9d58b1b54af99181e45a3b38d764 (diff) |
Merge from gnus--devo--0
Revision: [email protected]/emacs--devo--0--patch-1168
Diffstat (limited to 'lisp/gnus/mml.el')
-rw-r--r-- | lisp/gnus/mml.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 3aaa9c7920..7490a002d3 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el @@ -1313,18 +1313,20 @@ Ask for type, description or disposition according to (setq disposition (mml-minibuffer-read-disposition type nil file))) (mml-attach-file file type description disposition))))) -(defun mml-attach-buffer (buffer &optional type description) +(defun mml-attach-buffer (buffer &optional type description disposition) "Attach a buffer to the outgoing MIME message. -See `mml-attach-file' for details of operation." +BUFFER is the name of the buffer to attach. See +`mml-attach-file' for details of operation." (interactive (let* ((buffer (read-buffer "Attach buffer: ")) (type (mml-minibuffer-read-type buffer "text/plain")) - (description (mml-minibuffer-read-description))) - (list buffer type description))) + (description (mml-minibuffer-read-description)) + (disposition (mml-minibuffer-read-disposition type nil))) + (list buffer type description disposition))) (save-excursion (unless (message-in-body-p) (goto-char (point-max))) (mml-insert-empty-tag 'part 'type type 'buffer buffer - 'disposition "attachment" + 'disposition disposition 'description description))) (defun mml-attach-external (file &optional type description) |