tm 7.99.
[elisp/tm.git] / doc / tm-edit-en.info
index 6c09eca..4218a5c 100644 (file)
@@ -7,7 +7,7 @@ using `texinfmt.el' version 2.32 of 19 November 1993.
 \1f
 File: tm-edit-en.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
 
-tm-edit 7.90 Reference Manual (English Version)
+tm-edit 7.99 Reference Manual (English Version)
 ***********************************************
 
 
@@ -20,6 +20,7 @@ This file documents tm-edit, a MIME composer for GNU Emacs.
 * single-part operations::      
 * enclosure operation::         
 * other operations of mime/editor-mode::  
+* tag specification for inserted file::  Default media-type or encoding for inserted file
 * transfer level::              
 * header::                      Using non-ASCII characters in header
 * PGP::                         
@@ -113,7 +114,9 @@ Operations to make single-part are following:
      Insert single-part tag indicates text part.
 
 `C-c C-x C-i'
-     Insert file as a MIME attachment.
+     Insert file as a MIME attachment.  If `C-u' is followed by it, it
+     asks media-type, subtype or encoding even if their default values
+     are specified. (cf. *Note tag specification for inserted file::)
 
 `C-c C-x C-e'
      Insert external part.
@@ -178,7 +181,7 @@ Operations to make enclosure are following:
 
 
 \1f
-File: tm-edit-en.info, Node: other operations of mime/editor-mode, Next: transfer level, Prev: enclosure operation, Up: Top
+File: tm-edit-en.info, Node: other operations of mime/editor-mode, Next: tag specification for inserted file, Prev: enclosure operation, Up: Top
 
 other operations of mime/editor-mode
 ************************************
@@ -223,7 +226,74 @@ There are another operations in mime/editor-mode.
 
 
 \1f
-File: tm-edit-en.info, Node: transfer level, Next: header, Prev: other operations of mime/editor-mode, Up: Top
+File: tm-edit-en.info, Node: tag specification for inserted file, Next: transfer level, Prev: other operations of mime/editor-mode, Up: Top
+
+Default media-type or encoding for inserted file
+************************************************
+
+When `C-c C-x C-i' (`mime-editor/insert-file') is pressed, tag
+parameters for inserted file, such as media-type or encoding, are
+detected by variable `mime-file-types'.
+
+When `C-u' is followed by it or parameter is not found from the
+variable, it asks from user.  (When `C-u' is followed by it, detected
+value is used as default value)
+
+If you want to change default value for file names, please change
+variable `mime-file-types'.
+
+
+ -- Variable: mime-file-types
+
+     Specification of default value of tag for file name of inserted
+     file.
+
+     It is a list of following list:
+
+               (FILE_PAT TYPE SUBTYPE PARAMS ENCODING
+                DISPOSITION_TYPE DISPOSITION_PARAMS)
+
+
+     Each elements of the list are following:
+
+     `FILE_PAT'
+          regular expression of file name
+
+     `TYPE'
+          media type
+
+     `SUBTYPE'
+          media subtype
+
+     `PARAMS'
+          parameters of Content-Type field
+
+     `ENCODING'
+          Content-Transfer-Encoding
+
+     `DISPOSITION_TYPE'
+          disposition-type
+
+     `DISPOSITION_PARAMS'
+          parameters of Content-Disposition field
+
+
+     Example: Specify application/rtf as default media type for `*.rtf'
+
+          (call-after-loaded
+           'tm-edit
+           (lambda ()
+             (set-alist 'mime-file-types
+                     "\\.rtf$"
+                     '("application" "rtf" nil nil
+                       "attachment" (("filename" . file)))
+                     )))
+
+
+
+
+\1f
+File: tm-edit-en.info, Node: transfer level, Next: header, Prev: tag specification for inserted file, Up: Top
 
 transfer level
 **************
@@ -481,3 +551,4 @@ Variable Index
 * mime-editor/transfer-level:   transfer level.         33.
 * mime-eword/charset-encoding-alist: API about header.  35.
 * mime/field-encoding-method-alist: evil setting in header.  21.
+* mime-file-types:              tag specification for inserted file.  19.