From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: attaching many files
Date: Tue, 08 Sep 2009 15:46:16 +0900 [thread overview]
Message-ID: <b4mk50arl1j.fsf@jpl.org> (raw)
In-Reply-To: <b4mvdk5t0e4.fsf@jpl.org>
[-- Attachment #1: Type: text/plain, Size: 329 bytes --]
>>>>> Reiner Steib wrote:
>> I didn't try your code yet, but I still think that point should not
>> move when inside the headers.
`C-c C-m m' (mml-insert-multipart) and `C-c C-m p' (mml-insert-part)
insert a MIME tag even in the message header. Do you have an idea
to fix it? I vote for stopping it with an error as follows:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1278 bytes --]
--- mml.el~ 2009-09-07 08:13:38 +0000
+++ mml.el 2009-09-08 06:44:08 +0000
@@ -1387,20 +1387,23 @@
(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"
[-- Attachment #3: Type: text/plain, Size: 104 bytes --]
(I've added another change to `mml-insert-part' so as to make
point end up at the end of a MIME tag.)
prev parent reply other threads:[~2009-09-08 6:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 11:25 Katsumi Yamaoka
2009-08-20 19:49 ` Reiner Steib
2009-08-20 22:30 ` Katsumi Yamaoka
2009-08-28 10:57 ` Katsumi Yamaoka
2009-08-28 17:17 ` Reiner Steib
2009-08-30 22:14 ` Katsumi Yamaoka
2009-09-08 6:46 ` Katsumi Yamaoka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mk50arl1j.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).