aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2001-01-04 14:47:59 +0000
committerDave Love2001-01-04 14:47:59 +0000
commit5bb548d2f33c344be8f2b6b6979afc70b6ba67e8 (patch)
treeb2b118b417745c0f124ab26a43d6f78918a1c515
parent0f2ac578ce57273e4f89dadcca864b80e44765a9 (diff)
downloademacs-5bb548d2f33c344be8f2b6b6979afc70b6ba67e8.tar.gz
emacs-5bb548d2f33c344be8f2b6b6979afc70b6ba67e8.zip
(mm-inline-media-tests): Add
image/x-portable-bitmap. (mm-get-image): Grok pbm.
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/mm-decode.el12
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 041eea81f9c..5c59189dfc6 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12001-01-04 Dave Love <fx@gnu.org>
2
3 * mm-decode.el (mm-inline-media-tests): Add
4 image/x-portable-bitmap.
5 (mm-get-image): Grok pbm.
6
12000-12-24 11:00:00 ShengHuo ZHU <zsh@cs.rochester.edu> 72000-12-24 11:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
2 8
3 * message.el (message-mail): Support yank-action. 9 * message.el (message-mail): Support yank-action.
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index a44f6e5756c..63c6c2e9f5f 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -114,6 +114,10 @@
114 mm-inline-image 114 mm-inline-image
115 (lambda (handle) 115 (lambda (handle)
116 (mm-valid-and-fit-image-p 'bmp handle))) 116 (mm-valid-and-fit-image-p 'bmp handle)))
117 ("image/x-portable-bitmap"
118 mm-inline-image
119 (lambda (handle)
120 (mm-valid-and-fit-image-p 'pbm handle)))
117 ("text/plain" mm-inline-text identity) 121 ("text/plain" mm-inline-text identity)
118 ("text/enriched" mm-inline-text identity) 122 ("text/enriched" mm-inline-text identity)
119 ("text/richtext" mm-inline-text identity) 123 ("text/richtext" mm-inline-text identity)
@@ -164,7 +168,7 @@
164(defcustom mm-automatic-display 168(defcustom mm-automatic-display
165 '("text/plain" "text/enriched" "text/richtext" "text/html" 169 '("text/plain" "text/enriched" "text/richtext" "text/html"
166 "text/x-vcard" "image/.*" "message/delivery-status" "multipart/.*" 170 "text/x-vcard" "image/.*" "message/delivery-status" "multipart/.*"
167 "message/rfc822" "text/x-patch" "application/pgp-signature" 171 "message/rfc822" "text/x-patch" "application/pgp-signature"
168 "application/emacs-lisp") 172 "application/emacs-lisp")
169 "A list of MIME types to be displayed automatically." 173 "A list of MIME types to be displayed automatically."
170 :type '(repeat string) 174 :type '(repeat string)
@@ -227,7 +231,7 @@ to:
227 "Keymap for input viewer with completion.") 231 "Keymap for input viewer with completion.")
228 232
229;; Should we bind other key to minibuffer-complete-word? 233;; Should we bind other key to minibuffer-complete-word?
230(define-key mm-viewer-completion-map " " 'self-insert-command) 234(define-key mm-viewer-completion-map " " 'self-insert-command)
231 235
232;;; The functions. 236;;; The functions.
233 237
@@ -724,7 +728,7 @@ external if displayed external."
724 (completing-read "Viewer: " methods)))) 728 (completing-read "Viewer: " methods))))
725 (when (string= method "") 729 (when (string= method "")
726 (error "No method given")) 730 (error "No method given"))
727 (if (string-match "^[^% \t]+$" method) 731 (if (string-match "^[^% \t]+$" method)
728 (setq method (concat method " %s"))) 732 (setq method (concat method " %s")))
729 (mm-display-external (copy-sequence handle) method))) 733 (mm-display-external (copy-sequence handle) method)))
730 734
@@ -775,6 +779,8 @@ external if displayed external."
775 "xpm") 779 "xpm")
776 ((equal type "x-xbitmap") 780 ((equal type "x-xbitmap")
777 "xbm") 781 "xbm")
782 ((equal type "x-portable-bitmap")
783 "pbm")
778 (t type))) 784 (t type)))
779 (or (mm-handle-cache handle) 785 (or (mm-handle-cache handle)
780 (mm-with-unibyte-buffer 786 (mm-with-unibyte-buffer