diff options
| author | Glenn Morris | 2013-02-16 16:38:03 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-02-16 16:38:03 -0800 |
| commit | bfc58a84b276919f675b0c65e84ea97238833033 (patch) | |
| tree | 1b44a1ade0a10cae1bc4fd60063c8907796b3808 | |
| parent | ed8d7fcaa2965216d44388fd00a757c8d55e7395 (diff) | |
| download | emacs-bfc58a84b276919f675b0c65e84ea97238833033.tar.gz emacs-bfc58a84b276919f675b0c65e84ea97238833033.zip | |
* lisp/gnus/shr.el (shr-put-image): Use image-multi-frame-p if available.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 5030da87672..dd6d20969ff 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-02-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * shr.el (shr-put-image): Use image-multi-frame-p if available. | ||
| 4 | |||
| 1 | 2013-02-16 Glenn Morris <rgm@gnu.org> | 5 | 2013-02-16 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * shr.el (shr-put-image): Only animate images that specify a delay. | 7 | * shr.el (shr-put-image): Only animate images that specify a delay. |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 1294ca7cd69..886f4da53dc 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -615,8 +615,12 @@ size, and full-buffer size." | |||
| 615 | (overlay-put overlay 'face 'default))) | 615 | (overlay-put overlay 'face 'default))) |
| 616 | (insert-image image (or alt "*"))) | 616 | (insert-image image (or alt "*"))) |
| 617 | (put-text-property start (point) 'image-size size) | 617 | (put-text-property start (point) 'image-size size) |
| 618 | ;; Only animate multi-frame things that specify a delay. FIXME? | 618 | (when (if (fboundp 'image-multi-frame-p) |
| 619 | (when (cdr (image-animated-p image)) | 619 | ;; Only animate multi-frame things that specify a |
| 620 | ;; delay; eg animated gifs as opposed to | ||
| 621 | ;; multi-page tiffs. FIXME? | ||
| 622 | (cdr (image-multi-frame-p image)) | ||
| 623 | (image-animated-p image)) | ||
| 620 | (image-animate image nil 60))) | 624 | (image-animate image nil 60))) |
| 621 | image) | 625 | image) |
| 622 | (insert alt))) | 626 | (insert alt))) |