1 [README for tm (English Version)]
2 by MORIOKA Tomohiko <morioka@jaist.ac.jp>
3 $Id: README.eng,v 7.2 1995/12/03 23:25:59 morioka Exp $
7 Tm is a MIME package for GNU Emacs. Tm has following functions:
9 - MIME style multilingual header
10 - MIME message viewer (mime/viewer-mode)
11 - MIME message composer (mime/editor-mode)
12 - MIME extenders for mh-e, GNUS, RMAIL and vm
17 This package includes following documents.
21 - tm/doc/tm_en.texi : tm Reference Manual (TeXinfo)
22 - tm/doc/tm-view_en.texi: tm-view Reference Manual (TeXinfo)
23 - tm/doc/tm-gnus_en.texi: tm-gnus Reference Manual (TeXinfo)
27 - tm/doc/tm_ja.tex : tm Reference Manual (TeXinfo)
28 - tm/doc/tm-view_ja.texi : tm-view Reference Manual (TeXinfo)
29 - tm/doc/tm-gnus_ja.texi : tm-gnus Reference Manual (TeXinfo)
30 - tm/doc/signature-jp.ol : signature.el Reference Manual (Emacs Outline)
31 - tm/doc/signature-jp.tex: signature.el Reference Manual (LaTeX)
36 Tm has following modules:
38 - tm-view : MIME viewer
39 - tm-parse.el : MIME message parser
40 - tm-play.el : MIME content player
41 - tm-ew-d.el : MIME encoded-word decoder
42 - preview filter for tm-view
43 - tm-rich : for text/enriched and text/richtext
44 - internal methods for tm-view
45 - tm-partial : automatic assembler for message/partial
46 - tm-ftp : for anonymous ftp
47 - tm-file : for file extraction
48 - tm-tar : for tar content
49 - tm-latex : for LaTeX
50 - tm-html : for text/html
51 - tm-edit : MIME composer (mime.el and tm-comp.el were merged)
52 - tm-ew-e.el : MIME encoded-word encoder
53 - tm-def : definition module for tm
54 - tm-nemacs.el : NEmacs depended part of tm
55 - tm-orig.el : FSF original Emacs and XEmacs
57 - tm-mule.el : Mule depended part of tm
58 - tm-MUAs : MIME extender for MUAs
59 - tm-mh-e : tm-MUA for mh-e
60 - tm-gnus : tm-MUA for GNUS
61 - tm-rmail : tm-MUA for RMAIL
62 - tm-vm : tm-MUA for vm
63 - tm-mail : tm-MUA library module for mail-mode
64 - mime-setup: set up module for MIME
65 - tm-setup: set up only reading
72 Please edit tm/config.tm file.
77 Please edit external methods in `tm/methods/' directory for your
80 tm/methods/tm-au for audio
81 tm/methods/tm-file for file extraction
82 tm/methods/tm-image for image
83 tm/methods/tm-mpeg for MPEG
84 tm/methods/tm-plain for plain text
85 tm/methods/tm-html for HTML
86 tm/methods/tmdecode decoder
99 4.5 Emacs Lisp modules
101 Run `make install-18', if you use Emacs 18 (NEmacs, Mule 1.*).
103 Run `make install-xemacs', if you use Emacs .. 19.28 (Mule 2.* based
106 Run `make install-19_29', if you use Emacs 19.29 or later (Mule 2.*
109 Or copy *.el to your emacs lisp directory.
116 If you use optional GNUS or Gnus, you must edit and make manually.
118 (1) Please edit tm/gnus/Makefile.
120 If you use Emacs 18.* and GNUS 3.*, please edit tm/gnus/g3-path.
122 If you use Emacs 18.* and GNUS 4.*, please edit tm/gnus/g4-path.
124 If you use Gnus 5.0.*, please edit tm/gnus/g5-path.
126 If you use September Gnus, please edit tm/gnus/s-path.
130 Run `make gnus3', if you use GNUS 3.*.
132 Run `make gnus4', if you use GNUS 4.*.
134 Run `make gnus5', if you use Gnus 5.0.*.
136 Run `make sgnus', if you use September Gnus.
140 Run `make install-18', if you use Emacs 18.*.
142 Run `make install-19', if you use Emacs .. 19.28 or XEmacs.
144 Run `make install-19_29', if you use Emacs 19.29 or later.
147 5.1.1 automatic MIME preview support
149 tm-gnus provides automatic MIME preview feature for GNUS 3.15 or
150 later, Gnus 5.0.*, Gnus 5.1, and September Gnus.
152 If you don't want to use automatic MIME preview feature, please
153 insert following to ~/.emacs.
155 (setq tm-gnus/automatic-mime-preview nil)
157 In addition, September Gnus has automatic MIME preview supporting
158 feature. Of course, tm-gnus provide this feature for other GNUS and
159 Gnus, but it is unnatural.
161 When automatic MIME preview mode, GNUS and Gnus do MIME processing
162 if a message has a Mime-Version field. If it does not have, GNUS and
163 Gnus does not do MIME processing, in default.
165 Gnus 5.0.*, 5.1 and September Gnus have a variable
166 `gnus-strict-mime'. If you insert
168 (setq gnus-strict-mime nil)
170 Gnus do MIME processing even if a message does not have Mime-Version
173 In September Gnus, if `gnus-strict-mime' is not nil, variable
174 `gnus-decode-encoded-word-method' is called. tm-gnus uses it to decode
175 RFC 1522 encoded-word. So it is not necessary to reset
181 If you use optional mh-e, you must edit and make manually.
183 (1) Please edit mh-e/Makefile
191 Run `make install-18', if you use Emacs 18.*.
193 Run `make install-19', if you use Emacs 19.*.
198 Please insert (load "mime-setup") in ~/.emacs.
202 If you want to use vm, please insert (load "tm-vm") in ~/.vm.
204 6.2 setting sample for hilit19
206 ======================================================================
208 (let* ((header-patterns '(("^Subject:.*$" nil msg-subject)
209 ("^From:.*$" nil msg-from)
210 ("^--text follows this line--$"
212 ("^[A-Za-z][A-Za-z0-9-]+:" nil msg-header)
214 (body-patterns '(("^\\(In article\\|[ \t]*\\w*[]<>}|]\\).*$"
216 (message-patterns (append header-patterns body-patterns))
218 (hilit-set-mode-patterns 'msg-header header-patterns)
219 (hilit-set-mode-patterns 'msg-body body-patterns)
220 (hilit-set-mode-patterns 'mime/viewer-mode
222 'hilit-rehighlight-message)
224 (add-hook 'mime-viewer/content-header-filter-hook
225 (function hilit-rehighlight-buffer-quietly))
226 (add-hook 'mime-viewer/plain-text-preview-hook
227 (function hilit-rehighlight-buffer-quietly))
229 ======================================================================
231 6.3 setting sample for browse
233 If you have browse-url.el (included in Gnus 5.*, September Gnus and
234 Emacs 19.30 or later), you can use URL button in
235 mime/viewer-mode. Following is setting sample:
237 ======================================================================
238 (setq browse-url-browser-function
239 (if (eq window-system 'x)
242 (autoload browse-url-browser-function "browse-url"
243 "Ask a WWW browser to show a URL." t)
244 ======================================================================
247 7 How to use mime/viewer-mode
249 In tm-MUAs, you can use mime/viewer-mode if you press `v' key (in VM,
250 `Z' key) in Summary mode. Or automatic MIME previewed buffer's
251 major-mode is mime/viewer-mode. mime/viewer-mode has following
254 q quit from mime/viewer-mode
255 u move to upper content
256 p move to previous content
257 n move to next content
258 SPC scroll up or move to next content
259 M-SPC scroll down or move to previous content
260 DEL scroll down or move to previous content
261 RET move to next line
262 M-RET move to previous line
263 v play current content
264 e extract as file current content
265 C-c C-p print current content
266 button-2 move to point under the mouse cursor and play
267 current content or browse URL
272 If you write bug-reports and/or propositions for improvement, please
273 post them to following news groups:
275 fj.editor.emacs (Japanese or English)
276 fj.editor.mule (Japanese or English; if you use Mule)
277 gnu.emacs.help (English)
279 fj.news.reader.gnus (Japanese or English; about GNUS and Gnus)
280 gnu.emacs.gnus (English; about GNUS and Gnus)
282 gnu.emacs.vm.info (English; about tm-vm)
286 bug-tm-en@chamonix.jaist.ac.jp (English)
287 bug-tm-ja@chamonix.jaist.ac.jp (Japanese)
289 Via tm ML, You can report bugs of tm, obtain the latest release of tm
290 package, and discuss the future enhancements to tm. To join tm ML,
293 tm-admin@chamonix.jaist.ac.jp (Japanese or English)
294 tm-eng-admin@chamonix.jaist.ac.jp (English)
296 Since the user registration is manually done, please write the mail
297 body in human-recognizable language (^_^).
302 - automatic MIME preview support for another MUA
303 - better XEmacs support (e.g. inline image)
304 - development of internal method for message/external-body based on
306 - development good MIME composer