diff options
| author | Katsumi Yamaoka | 2010-09-03 06:10:04 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-03 06:10:04 +0000 |
| commit | 59f65f5c422ffda9b4cf9d9b97ed80785064abfc (patch) | |
| tree | b74c5e84bcc8746864f5486a0b7323194a4897ba | |
| parent | 73137971949d98417140a39450c8154101ebfe87 (diff) | |
| download | emacs-59f65f5c422ffda9b4cf9d9b97ed80785064abfc.tar.gz emacs-59f65f5c422ffda9b4cf9d9b97ed80785064abfc.zip | |
gnus-html.el (gnus-html-put-image): make avoidance of displaying small images work for XEmacs.
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 55b59c8d6bc..c23a59867e2 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * gnus-html.el (gnus-html-put-image): Use gnus-graphic-display-p, | 3 | * gnus-html.el (gnus-html-put-image): Use gnus-graphic-display-p, |
| 4 | glyph-width and glyph-height instead of display-graphic-p and | 4 | glyph-width and glyph-height instead of display-graphic-p and |
| 5 | image-size for XEmacs. | 5 | image-size; make avoidance of displaying small images work for XEmacs. |
| 6 | 6 | ||
| 7 | * gnus-util.el (gnus-graphic-display-p): Use device-on-window-system-p | 7 | * gnus-util.el (gnus-graphic-display-p): Use device-on-window-system-p |
| 8 | for XEmacs. | 8 | for XEmacs. |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 399676f0600..8717a4630df 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -254,8 +254,16 @@ fit these criteria." | |||
| 254 | (if (and image | 254 | (if (and image |
| 255 | ;; Kludge to avoid displaying 30x30 gif images, which | 255 | ;; Kludge to avoid displaying 30x30 gif images, which |
| 256 | ;; seems to be a signal of a broken image. | 256 | ;; seems to be a signal of a broken image. |
| 257 | (not (and (listp image) | 257 | (not (and (if (featurep 'xemacs) |
| 258 | (eq (plist-get (cdr image) :type) 'gif) | 258 | (glyphp image) |
| 259 | (listp image)) | ||
| 260 | (eq (if (featurep 'xemacs) | ||
| 261 | (let ((data (cdadar (specifier-spec-list | ||
| 262 | (glyph-image image))))) | ||
| 263 | (and (vectorp data) | ||
| 264 | (aref data 0))) | ||
| 265 | (plist-get (cdr image) :type)) | ||
| 266 | 'gif) | ||
| 259 | (= (car size) 30) | 267 | (= (car size) 30) |
| 260 | (= (cdr size) 30)))) | 268 | (= (cdr size) 30)))) |
| 261 | (progn | 269 | (progn |