diff options
author | Katsumi Yamaoka <yamaoka@jpl.org> | 2009-09-10 00:12:07 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2009-09-10 00:12:07 +0000 |
commit | 83ccc32ced9213f3256843b741ba15de0c18db3b (patch) | |
tree | e6690d1f0598ce9fa96840645329ff3b2d8c5da6 /lisp/gnus/mml.el | |
parent | c1905ca3e6b687db0f951aa07789dc90d5310109 (diff) | |
download | emacs-83ccc32ced9213f3256843b741ba15de0c18db3b.tar.gz |
* nnrss.el (nnrss-request-article): Remove binding of
default-enable-multibyte-characters that has gotten needless by
the 2007-07-13 change in rfc2047-encode-message-header.
* mml.el (mml-insert-multipart): Error on the message header.
(mml-insert-part): Error on the message header; position point at
the end of a MIME tag.
Diffstat (limited to 'lisp/gnus/mml.el')
-rw-r--r-- | lisp/gnus/mml.el | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index f397ef2b479..24a88806759 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el @@ -1387,20 +1387,23 @@ TYPE is the MIME type to use." (file-name-nondirectory file)))))) (defun mml-insert-multipart (&optional type) - (interactive (list (completing-read "Multipart type (default mixed): " - '(("mixed") ("alternative") ("digest") ("parallel") - ("signed") ("encrypted")) - nil nil "mixed"))) + (interactive (if (message-in-body-p) + (list (completing-read "Multipart type (default mixed): " + '(("mixed") ("alternative") + ("digest") ("parallel") + ("signed") ("encrypted")) + nil nil "mixed")) + (error "Use this command in the message body"))) (or type (setq type "mixed")) (mml-insert-empty-tag "multipart" 'type type) (forward-line -1)) (defun mml-insert-part (&optional type) - (interactive - (list (mml-minibuffer-read-type ""))) - (mml-insert-tag 'part 'type type 'disposition "inline") - (forward-line -1)) + (interactive (if (message-in-body-p) + (list (mml-minibuffer-read-type "")) + (error "Use this command in the message body"))) + (mml-insert-tag 'part 'type type 'disposition "inline")) (declare-function message-subscribed-p "message" ()) (declare-function message-make-mail-followup-to "message" |