* mime-image.el (mime-image-create) [XEmacs]: Don't call
authorueno <ueno>
Tue, 16 May 2000 15:58:17 +0000 (15:58 +0000)
committerueno <ueno>
Tue, 16 May 2000 15:58:17 +0000 (15:58 +0000)
`make-image-instance' directly.

ChangeLog
mime-image.el

index 99e5948..a39a470 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-16   Daiki Ueno  <ueno@unixuser.org>
+
+       * mime-image.el (mime-image-create) [XEmacs]: Don't call
+       `make-image-instance' directly.
+
 2000-05-02   Daiki Ueno  <ueno@unixuser.org>
 
        * pgg-gpg.el (pgg-scheme-encrypt-region): Don't quote recipient;
index 2110e2c..db2e4b6 100644 (file)
            (insert file-or-data)
            (setq file-or-data
                  (mime-image-normalize-xbm-buffer (current-buffer)))))
-       (let ((instance
-              (make-image-instance
+       (let ((glyph
+              (make-glyph
                (if (and type (mime-image-type-available-p type))
                    (vconcat
                     (list type (if data-p :data :file) file-or-data)
                     props)
-                 file-or-data)
-               nil nil 'noerror)))
-         (if (nothing-image-instance-p instance) nil
-           (make-glyph instance))))
+                 file-or-data))))
+         (if (nothing-image-instance-p (glyph-image-instance glyph)) nil
+           glyph)))
 
       (defun mime-image-insert (image string &optional area)
        (let ((extent (make-extent (point) (progn (insert string)(point)))))