X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=doc%2Ftm-edit-en.sgml;fp=doc%2Ftm-edit-en.sgml;h=261a662beac16795799e956fece37b168bb0bcfd;hb=8e18eb1fd95180a6ea115a00ce2f045815809b49;hp=3ee593b67dbf73c36057bf58103237930d40e140;hpb=5281e887c9b0861e341e5b767a243f50a7e516f4;p=elisp%2Ftm.git diff --git a/doc/tm-edit-en.sgml b/doc/tm-edit-en.sgml index 3ee593b..261a662 100644 --- a/doc/tm-edit-en.sgml +++ b/doc/tm-edit-en.sgml @@ -1,9 +1,9 @@ - + -tm-edit 7.90 Reference Manual (English Version) +<title>tm-edit 7.99 Reference Manual (English Version) <author>MORIOKA Tomohiko <mail>morioka@jaist.ac.jp</mail> -<date>1996/10/11 +<date>1996/12/25 <toc> </head> @@ -109,7 +109,9 @@ Insert single-part tag indicates text part. </kd> <kt>C-c C-x C-i <kd> -Insert file as a MIME attachment. +Insert file as a MIME attachment. If <kbd>C-u</kbd> is followed by +it, it asks media-type, subtype or encoding even if their default +values are specified. <cf node="tag specification for inserted file"> </kd> <kt>C-c C-x C-e <kd> @@ -227,6 +229,68 @@ Set current editing message to encrypt or not. <cf node="PGP"> </kl> +<h1> Default media-type or encoding for inserted file +<node> tag specification for inserted file +<p> +When <kbd>C-c C-x C-i</kbd> (<code>mime-editor/insert-file</code>) is +pressed, tag parameters for inserted file, such as media-type or +encoding, are detected by variable <code>mime-file-types</code>. +<p> +When <kbd>C-u</kbd> is followed by it or parameter is not found from +the variable, it asks from user. (When <kbd>C-u</kbd> is followed by +it, detected value is used as default value) +<p> +If you want to change default value for file names, please change +variable <code>mime-file-types</code>. + + +<defvar name="mime-file-types"> +<p> +Specification of default value of tag for file name of inserted file. +<p> +It is a list of following list: + +<lisp> + (FILE_PAT TYPE SUBTYPE PARAMS ENCODING + DISPOSITION_TYPE DISPOSITION_PARAMS) +</lisp> + +Each elements of the list are following: + +<dl> +<dt>FILE_PAT +<dd>regular expression of file name +<dt>TYPE +<dd>media type +<dt>SUBTYPE +<dd>media subtype +<dt>PARAMS +<dd>parameters of Content-Type field +<dt>ENCODING +<dd>Content-Transfer-Encoding +<dt>DISPOSITION_TYPE +<dd>disposition-type +<dt>DISPOSITION_PARAMS +<dd>parameters of Content-Disposition field +</dl> + +<noindent> +Example: Specify application/rtf as default media type for +<file>*.rtf</file> + +<lisp> +(call-after-loaded + 'tm-edit + (lambda () + (set-alist 'mime-file-types + "\\.rtf$" + '("application" "rtf" nil nil + "attachment" (("filename" . file))) + ))) +</lisp> +</defvar> + + <h1> transfer level <node> transfer level <p>