163
|
1 ;;; DO NOT MODIFY THIS FILE
|
183
|
2 (if (featurep 'tm-autoloads) (error "Already loaded"))
|
163
|
3
|
|
4 ;;;### (autoloads (mime/editor-mode) "tm-edit" "tm/tm-edit.el")
|
|
5
|
|
6 (autoload 'mime/editor-mode "tm-edit" "\
|
|
7 MIME minor mode for editing the tagged MIME message.
|
|
8
|
|
9 In this mode, basically, the message is composed in the tagged MIME
|
|
10 format. The message tag looks like:
|
|
11
|
|
12 --[[text/plain; charset=ISO-2022-JP][7bit]]
|
|
13
|
|
14 The tag specifies the MIME content type, subtype, optional parameters
|
|
15 and transfer encoding of the message following the tag. Messages
|
|
16 without any tag are treated as `text/plain' by default. Charset and
|
|
17 transfer encoding are automatically defined unless explicitly
|
|
18 specified. Binary messages such as audio and image are usually hidden.
|
|
19 The messages in the tagged MIME format are automatically translated
|
|
20 into a MIME compliant message when exiting this mode.
|
|
21
|
|
22 Available charsets depend on Emacs version being used. The following
|
|
23 lists the available charsets of each emacs.
|
|
24
|
|
25 EMACS 18: US-ASCII is only available.
|
|
26 NEmacs: US-ASCII and ISO-2022-JP are available.
|
|
27 EMACS 19: US-ASCII and ISO-8859-1 (or other charset) are available.
|
|
28 XEmacs 19: US-ASCII and ISO-8859-1 (or other charset) are available.
|
|
29 Mule: US-ASCII, ISO-8859-* (except for ISO-8859-5), KOI8-R,
|
|
30 ISO-2022-JP, ISO-2022-JP-2, ISO-2022-KR, BIG5 and
|
|
31 ISO-2022-INT-1 are available.
|
|
32
|
|
33 ISO-2022-JP-2 and ISO-2022-INT-1 charsets used in mule is expected to
|
|
34 be used to represent multilingual text in intermixed manner. Any
|
|
35 languages that has no registered charset are represented as either
|
|
36 ISO-2022-JP-2 or ISO-2022-INT-1 in mule.
|
|
37
|
|
38 If you want to use non-ISO-8859-1 charset in EMACS 19 or XEmacs 19,
|
|
39 please set variable `default-mime-charset'. This variable must be
|
|
40 symbol of which name is a MIME charset.
|
|
41
|
|
42 If you want to add more charsets in mule, please set variable
|
|
43 `charsets-mime-charset-alist'. This variable must be alist of which
|
|
44 key is list of leading-char/charset and value is symbol of MIME
|
|
45 charset. (leading-char is a term of MULE 1.* and 2.*. charset is a
|
|
46 term of XEmacs/mule, mule merged EMACS and MULE 3.*) If name of
|
|
47 coding-system is different as MIME charset, please set variable
|
|
48 `mime-charset-coding-system-alist'. This variable must be alist of
|
|
49 which key is MIME charset and value is coding-system.
|
|
50
|
|
51 Following commands are available in addition to major mode commands:
|
|
52
|
|
53 [make single part]
|
|
54 \\[mime-editor/insert-text] insert a text message.
|
|
55 \\[mime-editor/insert-file] insert a (binary) file.
|
|
56 \\[mime-editor/insert-external] insert a reference to external body.
|
|
57 \\[mime-editor/insert-voice] insert a voice message.
|
|
58 \\[mime-editor/insert-message] insert a mail or news message.
|
|
59 \\[mime-editor/insert-mail] insert a mail message.
|
|
60 \\[mime-editor/insert-signature] insert a signature file at end.
|
|
61 \\[mime-editor/insert-key] insert PGP public key.
|
|
62 \\[mime-editor/insert-tag] insert a new MIME tag.
|
|
63
|
|
64 [make enclosure (maybe multipart)]
|
|
65 \\[mime-editor/enclose-alternative-region] enclose as multipart/alternative.
|
|
66 \\[mime-editor/enclose-parallel-region] enclose as multipart/parallel.
|
|
67 \\[mime-editor/enclose-mixed-region] enclose as multipart/mixed.
|
|
68 \\[mime-editor/enclose-digest-region] enclose as multipart/digest.
|
|
69 \\[mime-editor/enclose-signed-region] enclose as PGP signed.
|
|
70 \\[mime-editor/enclose-encrypted-region] enclose as PGP encrypted.
|
|
71 \\[mime-editor/enclose-quote-region] enclose as verbose mode (to avoid to expand tags)
|
|
72
|
|
73 [other commands]
|
|
74 \\[mime-editor/set-transfer-level-7bit] set transfer-level as 7.
|
|
75 \\[mime-editor/set-transfer-level-8bit] set transfer-level as 8.
|
|
76 \\[mime-editor/set-split] set message splitting mode.
|
|
77 \\[mime-editor/set-sign] set PGP-sign mode.
|
|
78 \\[mime-editor/set-encrypt] set PGP-encryption mode.
|
|
79 \\[mime-editor/preview-message] preview editing MIME message.
|
|
80 \\[mime-editor/exit] exit and translate into a MIME compliant message.
|
|
81 \\[mime-editor/help] show this help.
|
|
82 \\[mime-editor/maybe-translate] exit and translate if in MIME mode, then split.
|
|
83
|
|
84 Additional commands are available in some major modes:
|
|
85 C-c C-c exit, translate and run the original command.
|
|
86 C-c C-s exit, translate and run the original command.
|
|
87
|
|
88 The following is a message example written in the tagged MIME format.
|
|
89 TABs at the beginning of the line are not a part of the message:
|
|
90
|
|
91 This is a conventional plain text. It should be translated
|
|
92 into text/plain.
|
|
93 --[[text/plain]]
|
|
94 This is also a plain text. But, it is explicitly specified as
|
|
95 is.
|
|
96 --[[text/plain; charset=ISO-8859-1]]
|
|
97 This is also a plain text. But charset is specified as
|
|
98 iso-8859-1.
|
|
99
|
|
100 ¡Hola! Buenos días. ¿Cómo está usted?
|
|
101 --[[text/enriched]]
|
|
102 This is a <bold>enriched text</bold>.
|
|
103 --[[image/gif][base64]]...image encoded in base64 here...
|
|
104 --[[audio/basic][base64]]...audio encoded in base64 here...
|
|
105
|
|
106 User customizable variables (not documented all of them):
|
|
107 mime-prefix
|
|
108 Specifies a key prefix for MIME minor mode commands.
|
|
109
|
|
110 mime-ignore-preceding-spaces
|
|
111 Preceding white spaces in a message body are ignored if non-nil.
|
|
112
|
|
113 mime-ignore-trailing-spaces
|
|
114 Trailing white spaces in a message body are ignored if non-nil.
|
|
115
|
|
116 mime-auto-hide-body
|
|
117 Hide a non-textual body message encoded in base64 after insertion
|
|
118 if non-nil.
|
|
119
|
|
120 mime-editor/transfer-level
|
|
121 A number of network transfer level. It should be bigger than 7.
|
|
122 If you are in 8bit-through environment, please set 8.
|
|
123
|
|
124 mime-editor/voice-recorder
|
|
125 Specifies a function to record a voice message and encode it.
|
|
126 The function `mime-editor/voice-recorder-for-sun' is for Sun
|
|
127 SparcStations.
|
|
128
|
|
129 mime/editor-mode-hook
|
|
130 Turning on MIME mode calls the value of mime/editor-mode-hook, if
|
|
131 it is non-nil.
|
|
132
|
|
133 mime-editor/translate-hook
|
|
134 The value of mime-editor/translate-hook is called just before translating
|
|
135 the tagged MIME format into a MIME compliant message if it is
|
|
136 non-nil. If the hook call the function mime-editor/insert-signature,
|
|
137 the signature file will be inserted automatically.
|
|
138
|
|
139 mime-editor/exit-hook
|
|
140 Turning off MIME mode calls the value of mime-editor/exit-hook, if it is
|
|
141 non-nil." t nil)
|
|
142
|
|
143 (defalias 'edit-mime 'mime/editor-mode)
|
|
144
|
|
145 ;;;***
|
169
|
146
|
|
147 (provide 'tm-autoloads)
|