Mercurial > emacs
annotate lisp/gnus/mm-view.el @ 55860:c1864c2911cf
(Named Features): Clarify return value and meaning of NOERROR.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 30 May 2004 14:20:58 +0000 |
parents | 197b3ee77f2c |
children | 55fd4f77387a 0fde48feb604 4c90ffeb71c5 |
rev | line source |
---|---|
38413
a26d9b55abb6
Some fixes to follow coding conventions in files from Gnus.
Pavel Janík <Pavel@Janik.cz>
parents:
33329
diff
changeset
|
1 ;;; mm-view.el --- functions for viewing MIME objects |
55680
197b3ee77f2c
(mm-insert-inline): Make it work in read-only buffer.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
2 ;; Copyright (C) 1998, 1999, 2000, 01, 2004 Free Software Foundation, Inc. |
31717 | 3 |
4 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | |
5 ;; This file is part of GNU Emacs. | |
6 | |
7 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
8 ;; it under the terms of the GNU General Public License as published by | |
9 ;; the Free Software Foundation; either version 2, or (at your option) | |
10 ;; any later version. | |
11 | |
12 ;; GNU Emacs is distributed in the hope that it will be useful, | |
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 ;; GNU General Public License for more details. | |
16 | |
17 ;; You should have received a copy of the GNU General Public License | |
18 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
19 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 ;; Boston, MA 02111-1307, USA. | |
21 | |
22 ;;; Commentary: | |
23 | |
24 ;;; Code: | |
25 | |
26 (eval-when-compile (require 'cl)) | |
27 (require 'mail-parse) | |
28 (require 'mailcap) | |
29 (require 'mm-bodies) | |
30 (require 'mm-decode) | |
31 | |
32 (eval-and-compile | |
33 (autoload 'gnus-article-prepare-display "gnus-art") | |
34 (autoload 'vcard-parse-string "vcard") | |
35 (autoload 'vcard-format-string "vcard") | |
36 (autoload 'fill-flowed "flow-fill") | |
38635
b6a0070476c7
(autoload): Don't autoload `diff-mode' if it's
Gerd Moellmann <gerd@gnu.org>
parents:
38413
diff
changeset
|
37 (unless (fboundp 'diff-mode) |
b6a0070476c7
(autoload): Don't autoload `diff-mode' if it's
Gerd Moellmann <gerd@gnu.org>
parents:
38413
diff
changeset
|
38 (autoload 'diff-mode "diff-mode" "" t nil))) |
31717 | 39 |
40 ;;; | |
41 ;;; Functions for displaying various formats inline | |
42 ;;; | |
43 (defun mm-inline-image-emacs (handle) | |
44 (let ((b (point-marker)) | |
45 buffer-read-only) | |
46 (insert "\n") | |
47 (put-image (mm-get-image handle) b) | |
48 (mm-handle-set-undisplayer | |
49 handle | |
50 `(lambda () (remove-images ,b (1+ ,b)))))) | |
51 | |
52 (defun mm-inline-image-xemacs (handle) | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
53 (insert "\n") |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
54 (forward-char -1) |
31717 | 55 (let ((b (point)) |
56 (annot (make-annotation (mm-get-image handle) nil 'text)) | |
57 buffer-read-only) | |
58 (mm-handle-set-undisplayer | |
59 handle | |
60 `(lambda () | |
61 (let (buffer-read-only) | |
62 (delete-annotation ,annot) | |
63 (delete-region ,(set-marker (make-marker) b) | |
64 ,(set-marker (make-marker) (point)))))) | |
65 (set-extent-property annot 'mm t) | |
66 (set-extent-property annot 'duplicable t))) | |
67 | |
68 (eval-and-compile | |
33329 | 69 (if (featurep 'xemacs) |
31717 | 70 (defalias 'mm-inline-image 'mm-inline-image-xemacs) |
71 (defalias 'mm-inline-image 'mm-inline-image-emacs))) | |
72 | |
73 (defvar mm-w3-setup nil) | |
74 (defun mm-setup-w3 () | |
75 (unless mm-w3-setup | |
76 (require 'w3) | |
77 (w3-do-setup) | |
78 (require 'url) | |
79 (require 'w3-vars) | |
80 (require 'url-vars) | |
81 (setq mm-w3-setup t))) | |
82 | |
83 (defun mm-inline-text (handle) | |
84 (let ((type (mm-handle-media-subtype handle)) | |
85 text buffer-read-only) | |
86 (cond | |
87 ((equal type "html") | |
88 (mm-setup-w3) | |
89 (setq text (mm-get-part handle)) | |
90 (let ((b (point)) | |
91 (url-standalone-mode t) | |
43166
aa31e3865857
* gnus-art.el (article-wash-html): Bind url-gateway-unplugged.
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
41829
diff
changeset
|
92 (url-gateway-unplugged t) |
31717 | 93 (url-current-object |
94 (url-generic-parse-url (format "cid:%s" (mm-handle-id handle)))) | |
95 (width (window-width)) | |
96 (charset (mail-content-type-get | |
97 (mm-handle-type handle) 'charset))) | |
98 (save-excursion | |
99 (insert text) | |
100 (save-restriction | |
101 (narrow-to-region b (point)) | |
102 (goto-char (point-min)) | |
103 (if (or (and (boundp 'w3-meta-content-type-charset-regexp) | |
104 (re-search-forward | |
105 w3-meta-content-type-charset-regexp nil t)) | |
106 (and (boundp 'w3-meta-charset-content-type-regexp) | |
107 (re-search-forward | |
108 w3-meta-charset-content-type-regexp nil t))) | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
109 (setq charset |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
110 (or (let ((bsubstr (buffer-substring-no-properties |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
111 (match-beginning 2) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
112 (match-end 2)))) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
113 (if (fboundp 'w3-coding-system-for-mime-charset) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
114 (w3-coding-system-for-mime-charset bsubstr) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
115 (mm-charset-to-coding-system bsubstr))) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
116 charset))) |
31717 | 117 (delete-region (point-min) (point-max)) |
118 (insert (mm-decode-string text charset)) | |
119 (save-window-excursion | |
120 (save-restriction | |
121 (let ((w3-strict-width width) | |
122 ;; Don't let w3 set the global version of | |
123 ;; this variable. | |
43166
aa31e3865857
* gnus-art.el (article-wash-html): Bind url-gateway-unplugged.
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
41829
diff
changeset
|
124 (fill-column fill-column)) |
31717 | 125 (condition-case var |
126 (w3-region (point-min) (point-max)) | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
127 (error |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
128 (delete-region (point-min) (point-max)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
129 (let ((b (point)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
130 (charset (mail-content-type-get |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
131 (mm-handle-type handle) 'charset))) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
132 (if (or (eq charset 'gnus-decoded) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
133 (eq mail-parse-charset 'gnus-decoded)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
134 (save-restriction |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
135 (narrow-to-region (point) (point)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
136 (mm-insert-part handle) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
137 (goto-char (point-max))) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
138 (insert (mm-decode-string (mm-get-part handle) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
139 charset)))) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
140 (message |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
141 "Error while rendering html; showing as text/plain")))))) |
31717 | 142 (mm-handle-set-undisplayer |
143 handle | |
144 `(lambda () | |
145 (let (buffer-read-only) | |
146 (if (functionp 'remove-specifier) | |
147 (mapcar (lambda (prop) | |
148 (remove-specifier | |
149 (face-property 'default prop) | |
150 (current-buffer))) | |
151 '(background background-pixmap foreground))) | |
152 (delete-region ,(point-min-marker) | |
153 ,(point-max-marker))))))))) | |
154 ((equal type "x-vcard") | |
155 (mm-insert-inline | |
156 handle | |
157 (concat "\n-- \n" | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
158 (ignore-errors |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
159 (if (fboundp 'vcard-pretty-print) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
160 (vcard-pretty-print (mm-get-part handle)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
161 (vcard-format-string |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
162 (vcard-parse-string (mm-get-part handle) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
163 'vcard-standard-filter))))))) |
31717 | 164 (t |
165 (let ((b (point)) | |
166 (charset (mail-content-type-get | |
167 (mm-handle-type handle) 'charset))) | |
168 (if (or (eq charset 'gnus-decoded) | |
169 ;; This is probably not entirely correct, but | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
170 ;; makes rfc822 parts with embedded multiparts work. |
31717 | 171 (eq mail-parse-charset 'gnus-decoded)) |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
172 (save-restriction |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
173 (narrow-to-region (point) (point)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
174 (mm-insert-part handle) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
175 (goto-char (point-max))) |
31717 | 176 (insert (mm-decode-string (mm-get-part handle) charset))) |
177 (when (and (equal type "plain") | |
178 (equal (cdr (assoc 'format (mm-handle-type handle))) | |
179 "flowed")) | |
180 (save-restriction | |
181 (narrow-to-region b (point)) | |
182 (goto-char b) | |
183 (fill-flowed) | |
184 (goto-char (point-max)))) | |
185 (save-restriction | |
186 (narrow-to-region b (point)) | |
187 (set-text-properties (point-min) (point-max) nil) | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
188 (when (or (equal type "enriched") |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
189 (equal type "richtext")) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
190 (enriched-decode (point-min) (point-max))) |
31717 | 191 (mm-handle-set-undisplayer |
192 handle | |
193 `(lambda () | |
194 (let (buffer-read-only) | |
195 (delete-region ,(point-min-marker) | |
196 ,(point-max-marker))))))))))) | |
197 | |
198 (defun mm-insert-inline (handle text) | |
199 "Insert TEXT inline from HANDLE." | |
55680
197b3ee77f2c
(mm-insert-inline): Make it work in read-only buffer.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
200 (let ((b (point)) |
197b3ee77f2c
(mm-insert-inline): Make it work in read-only buffer.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
201 (inhibit-read-only t)) |
31717 | 202 (insert text) |
203 (mm-handle-set-undisplayer | |
204 handle | |
205 `(lambda () | |
206 (let (buffer-read-only) | |
207 (delete-region ,(set-marker (make-marker) b) | |
208 ,(set-marker (make-marker) (point)))))))) | |
209 | |
210 (defun mm-inline-audio (handle) | |
211 (message "Not implemented")) | |
212 | |
213 (defun mm-view-sound-file () | |
214 (message "Not implemented")) | |
215 | |
216 (defun mm-w3-prepare-buffer () | |
217 (require 'w3) | |
43166
aa31e3865857
* gnus-art.el (article-wash-html): Bind url-gateway-unplugged.
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
41829
diff
changeset
|
218 (let ((url-standalone-mode t) |
aa31e3865857
* gnus-art.el (article-wash-html): Bind url-gateway-unplugged.
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
41829
diff
changeset
|
219 (url-gateway-unplugged t)) |
31717 | 220 (w3-prepare-buffer))) |
221 | |
222 (defun mm-view-message () | |
223 (mm-enable-multibyte) | |
224 (let (handles) | |
225 (let (gnus-article-mime-handles) | |
226 ;; Double decode problem may happen. See mm-inline-message. | |
227 (run-hooks 'gnus-article-decode-hook) | |
228 (gnus-article-prepare-display) | |
229 (setq handles gnus-article-mime-handles)) | |
230 (when handles | |
231 (setq gnus-article-mime-handles | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
43166
diff
changeset
|
232 (nconc gnus-article-mime-handles |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
43166
diff
changeset
|
233 (if (listp (car handles)) |
31717 | 234 handles (list handles)))))) |
235 (fundamental-mode) | |
236 (goto-char (point-min))) | |
237 | |
238 (defun mm-inline-message (handle) | |
239 (let ((b (point)) | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
240 (bolp (bolp)) |
31717 | 241 (charset (mail-content-type-get |
242 (mm-handle-type handle) 'charset)) | |
243 gnus-displaying-mime handles) | |
244 (when (and charset | |
245 (stringp charset)) | |
246 (setq charset (intern (downcase charset))) | |
247 (when (eq charset 'us-ascii) | |
248 (setq charset nil))) | |
249 (save-excursion | |
250 (save-restriction | |
251 (narrow-to-region b b) | |
252 (mm-insert-part handle) | |
253 (let (gnus-article-mime-handles | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
254 ;; disable prepare hook |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
255 gnus-article-prepare-hook |
31717 | 256 (gnus-newsgroup-charset |
257 (or charset gnus-newsgroup-charset))) | |
258 (run-hooks 'gnus-article-decode-hook) | |
259 (gnus-article-prepare-display) | |
260 (setq handles gnus-article-mime-handles)) | |
41829
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
261 (goto-char (point-min)) |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
262 (unless bolp |
b4833df45a4c
2001-12-05 ShengHuo ZHU <zsh@cs.rochester.edu>
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
38635
diff
changeset
|
263 (insert "\n")) |
31717 | 264 (goto-char (point-max)) |
265 (unless (bolp) | |
266 (insert "\n")) | |
267 (insert "----------\n\n") | |
268 (when handles | |
269 (setq gnus-article-mime-handles | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
43166
diff
changeset
|
270 (nconc gnus-article-mime-handles |
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
43166
diff
changeset
|
271 (if (listp (car handles)) |
31717 | 272 handles (list handles))))) |
273 (mm-handle-set-undisplayer | |
274 handle | |
275 `(lambda () | |
276 (let (buffer-read-only) | |
33329 | 277 (if (fboundp 'remove-specifier) |
31717 | 278 ;; This is only valid on XEmacs. |
279 (mapcar (lambda (prop) | |
280 (remove-specifier | |
281 (face-property 'default prop) (current-buffer))) | |
33329 | 282 '(background background-pixmap foreground))) |
31717 | 283 (delete-region ,(point-min-marker) ,(point-max-marker))))))))) |
284 | |
31764 | 285 (defun mm-display-inline-fontify (handle mode) |
31717 | 286 (let (text) |
287 (with-temp-buffer | |
288 (mm-insert-part handle) | |
31764 | 289 (funcall mode) |
31717 | 290 (font-lock-fontify-buffer) |
291 (when (fboundp 'extent-list) | |
292 (map-extents (lambda (ext ignored) | |
293 (set-extent-property ext 'duplicable t) | |
294 nil) | |
295 nil nil nil nil nil 'text-prop)) | |
296 (setq text (buffer-string))) | |
297 (mm-insert-inline handle text))) | |
298 | |
31764 | 299 (defun mm-display-patch-inline (handle) |
300 (mm-display-inline-fontify handle 'diff-mode)) | |
301 | |
302 (defun mm-display-elisp-inline (handle) | |
303 (mm-display-inline-fontify handle 'emacs-lisp-mode)) | |
304 | |
31717 | 305 (provide 'mm-view) |
306 | |
52401 | 307 ;;; arch-tag: b60e749a-d05c-47f2-bccd-bdaa59327cb2 |
38413
a26d9b55abb6
Some fixes to follow coding conventions in files from Gnus.
Pavel Janík <Pavel@Janik.cz>
parents:
33329
diff
changeset
|
308 ;;; mm-view.el ends here |