]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-html.el (gnus-html-put-image): make avoidance of displaying small images work...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 3 Sep 2010 06:10:04 +0000 (06:10 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 3 Sep 2010 06:10:04 +0000 (06:10 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el

index 55b59c8d6bce9df037e3925fa9ca55dd3a10618e..c23a59867e2cc9dc086f2b833255eb942ca6dc11 100644 (file)
@@ -2,7 +2,7 @@
 
        * gnus-html.el (gnus-html-put-image): Use gnus-graphic-display-p,
        glyph-width and glyph-height instead of display-graphic-p and
-       image-size for XEmacs.
+       image-size; make avoidance of displaying small images work for XEmacs.
 
        * gnus-util.el (gnus-graphic-display-p): Use device-on-window-system-p
        for XEmacs.
index 399676f06002030e10efc815de762320065f762a..8717a4630df6ff067cef475bc652c45217135ba5 100644 (file)
@@ -254,8 +254,16 @@ fit these criteria."
        (if (and image
                 ;; Kludge to avoid displaying 30x30 gif images, which
                 ;; seems to be a signal of a broken image.
-                (not (and (listp image)
-                          (eq (plist-get (cdr image) :type) 'gif)
+                (not (and (if (featurep 'xemacs)
+                              (glyphp image)
+                            (listp image))
+                          (eq (if (featurep 'xemacs)
+                                  (let ((data (cdadar (specifier-spec-list
+                                                       (glyph-image image)))))
+                                    (and (vectorp data)
+                                         (aref data 0)))
+                                (plist-get (cdr image) :type))
+                              'gif)
                           (= (car size) 30)
                           (= (cdr size) 30))))
            (progn