;;; mime-image.el --- mime-view filter to display images
-;; Copyright (C) 1995,1996,1997 MORIOKA Tomohiko
+;; Copyright (C) 1995,1996,1997,1998 MORIOKA Tomohiko
;; Copyright (C) 1996 Dan Rich
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Created: 1995/12/15
;; Renamed: 1997/2/21 from tm-image.el
-;; Version:
-;; $Id: mime-image.el,v 0.10 1997-04-03 18:09:35 morioka Exp $
;; Keywords: image, picture, X-Face, MIME, multimedia, mail, news
-;; This file is part of XEmacs.
+;; This file is part of SEMI (Suite of Emacs MIME Interfaces).
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
(require 'mime-view)
(require 'alist)
-(cond (running-xemacs
+(cond ((featurep 'xemacs)
(require 'images)
(defun-maybe image-inline-p (format)
;;
(autoload 'highlight-headers "highlight-headers")
- (defun mime-preview/x-face-function-use-highlight-headers ()
+ (defun mime-preview-x-face-function-use-highlight-headers ()
(highlight-headers (point-min) (re-search-forward "^$" nil t) t)
)
(add-hook 'mime-view-content-header-filter-hook
- 'mime-preview/x-face-function-use-highlight-headers)
+ 'mime-preview-x-face-function-use-highlight-headers)
)
((featurep 'mule)
;;
;; X-Face
;;
- (if (file-installed-p uncompface-program exec-path)
+ (if (exec-installed-p uncompface-program exec-path)
(add-hook 'mime-view-content-header-filter-hook
'x-face-decode-message-header)
)
("image/x-xpixmap" . xpm)
("image/x-pic" . pic)
("image/x-mag" . mag)
+ ("image/png" . png)
))
(defvar mime-view-ps-to-gif-command "pstogif")
(delete-file gif-file)
))
-(set-alist 'mime-view-content-filter-alist
- "application/postscript"
- (function mime-view-filter-for-application/postscript))
+;; If you would like to display inline Postscript image, please
+;; activate following:
-(if (featurep 'gif)
- (add-to-list 'mime-view-visible-media-type-list "application/postscript")
- )
+;; (set-alist 'mime-view-content-filter-alist
+;; "application/postscript"
+;; (function mime-view-filter-for-application/postscript))
+
+;; (if (featurep 'gif)
+;; (add-to-list
+;; 'mime-view-visible-media-type-list "application/postscript")
+;; )
;;; @ end