This commit was generated by cvs2svn to compensate for changes in r542,
[elisp/tm.git] / doc / tm-util=ja.texi
1 @c $Id: tm-util=ja.texi,v 4.0 1995/12/25 09:25:53 morioka Exp $
2
3 @node customize, Bug report, encoded-word, Top
4 @comment  node-name,  next,  previous,  up
5 @chapter tm ¤Î customize
6
7 tm ¤Î customize, ¤ª¤è¤Ó¡¢customize ¤ò¹Ô¤¦¤Î¤ËÍ­ÍѤʴؿô¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·
8 ¤Þ¤¹¡£
9
10 @menu
11 * fields::
12 * available functions::
13 * example::
14 @end menu
15
16
17 @node fields, available functions, customize, customize
18 @comment  node-name,  next,  previous,  up
19 @section fields
20 @cindex field-list
21 @cindex field-regexp
22
23 tm-view.el ¤ä tm-edit.el ¤Ç¤Ï message header field ¤Îɽ¼¨¡¦ÁªÂò¤Ë 
24 @strong{field-list} ¤È @strong{field-regexp} ¤È¤¤¤¦ÂФòÍѤ¤¤Þ¤¹¡£
25
26 ¤³¤³¤Ç¤Ï¤³¤ÎÂФòÁàºî¤¹¤ë¤¿¤á¤Î´Ø¿ô¤ò¾Ò²ð¤·¤Þ¤¹¡£
27
28
29 @defun tm:set-fields sym field-list &optional regexp-sym
30
31 symbol @var{sym} ¤Ç»Ø¤µ¤ì¤¿ field-list ¤Ë @var{field-list} ¤ò set ¤·¤Þ
32 ¤¹¡£
33 @end defun
34
35
36 @defun tm:add-fields sym field-list &optional regexp-sym
37
38 symbol @var{sym} ¤Ç»Ø¤µ¤ì¤¿ field-list ¤Ë @var{field-list} ¤òÄɲä·¤Þ
39 ¤¹¡£
40 @end defun
41
42
43 @defun tm:delete-fields sym field-list &optional regexp-sym
44
45 symbol @var{sym} ¤Ç»Ø¤µ¤ì¤¿ field-list ¤«¤é @var{field-list} ¤òºï½ü¤·
46 ¤Þ¤¹¡£
47 @end defun
48
49
50 @node available functions, example, fields, customize
51 @comment  node-name,  next,  previous,  up
52 @section Í­ÍѤʴؿô
53
54 tm ¤ÎÀßÄê¤ËÍ­ÍѤʴؿô¤ò¾Ò²ð¤·¤Þ¤¹¡£
55
56
57 @defun add-path path &rest options
58
59 @code{load-path} ¤Ë @var{path} ¤òÄɲä·¤Þ¤¹¡£
60
61 ɸ½à¤Ç¤Ï @code{default-load-path} ¤Îľ²¼¤Î¤É¤³¤«¤Ë @var{path} ¤¬Â¸ºß¤·
62 ¤Æ¤¤¤ë»þ¤Î¤ß¡¢@code{load-path} ¤ÎÀèƬ¤ËŸ³«¤·¤¿·Á¤ÇÄɲä·¤Þ¤¹¡£
63
64 @var{options} ¤Ë @code{'all-paths} ¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢@code{load-path} Á´
65 ÂΤ«¤é @var{path} ¤òõº÷¤·¤Þ¤¹¡£
66
67 @var{options} ¤Ë @code{'append} ¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢@code{load-path} ¤ÎËö
68 Èø¤ËÄɲä·¤Þ¤¹¡£
69 @end defun
70
71
72 @defun call-after-loaded module func &optional hook-name
73
74 @var{module} ¤¬ provide ¤µ¤ì¤Æ¤¤¤ì¤Ð @var{func} ¤ò¤¹¤°¤Ë¸Æ¤Ó¡¢¤½¤¦¤Ç¤Ê
75 ¤±¤ì¤Ð¡¢@var{module} ¤¬ load ¤µ¤ì¤¿»þ¤Ë @var{func} ¤¬¸Æ¤Ð¤ì¤ë¤è¤¦¤Ë¡¢
76 @var{hook-name} ¤Ë add-hook ¤·¤Þ¤¹¡£
77
78 @var{hook-name} ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢@code{MODULE-load-hook} ¤¬ÍѤ¤¤é¤ì¤Þ
79 ¤¹¡£
80 @end defun
81
82
83 @node example,  , available functions, customize
84 @comment  node-name,  next,  previous,  up
85 @section example
86
87 tm ¤Î customize ¤ÎÎã¤ò¼¨¤·¤Þ¤¹¡£
88
89
90 @subsection preview-buffer ¤Çɽ¼¨¤µ¤ì¤ë field ¤ÎÊѹ¹
91
92 ɸ½àÀßÄê¤Ë²Ã¤¨¡¢"Mail-From", "Expires", "Xref", "Approved", "Sender",
93 "X-.*" ¤âɽ¼¨¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
94
95 @lisp
96 (call-after-loaded
97  'tm-view
98  (lambda ()
99    (tm:add-fields
100     'mime-viewer/ignored-field-list
101     '("Mail-From" "Expires" "Xref" "Approved" "Sender" "X-.*")
102      )))
103 @end lisp
104
105
106 @subsection hilit19
107
108 hilit19 ¤ò»È¤Ã¤¿ face ¤ÎÀßÄêÎã
109
110 @lisp
111 (cond (window-system
112        (require 'hilit19)
113        (let* ((csubject-patterns '(("^\\[.+\\]$" nil msg-subject)))
114               (header-patterns '(("^Subject:.*$" nil msg-subject)
115                                  ("^From:.*$" nil msg-from)
116                                  ("^--text follows this line--$"
117                                   nil msg-separator)
118                                  ("^[A-Za-z][A-Za-z0-9-]+:" nil msg-header)
119                                  ))
120               (body-patterns '(("^\\(In article\\|[ \t]*\\w*[]<>@}|]\\).*$"
121                                 nil msg-quote)))
122               (message-patterns (append ;;csubject-patterns
123                                  header-patterns
124                                  body-patterns))
125               )
126          (hilit-set-mode-patterns 'msg-header header-patterns)
127          (hilit-set-mode-patterns 'msg-body body-patterns)
128          (hilit-set-mode-patterns 'mime/viewer-mode
129                                   message-patterns
130                                   'hilit-rehighlight-message)
131          )
132        (add-hook 'mime-viewer/content-header-filter-hook
133                  (lambda ()
134                    (if (not (eq mime::preview/original-major-mode
135                                 'gnus-original-article-mode))
136                        (hilit-rehighlight-buffer-quietly)
137                      )))
138        (add-hook 'mime-viewer/plain-text-preview-hook
139                  (lambda ()
140                    (if (not (eq mime::preview/original-major-mode
141                                 'gnus-original-article-mode))
142                        (hilit-rehighlight-buffer-quietly)
143                      )))
144        ))
145 @end lisp
146
147
148 @subsection browse-url
149
150 Gnus ÉÕ°¤Î browse-url.el ¤ÎÀßÄêÎã
151
152 @lisp
153 (setq browse-url-browser-function
154       (if (eq window-system 'x)
155           'browse-url-netscape
156         'browse-url-w3))
157 (autoload browse-url-browser-function "browse-url"
158   "Ask a WWW browser to show a URL." t)
159 @end lisp