Generalize "animated" images to "multi-frame" images
authorGlenn Morris <rgm@gnu.org>
Sat, 16 Feb 2013 19:56:50 +0000 (11:56 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 16 Feb 2013 19:56:50 +0000 (11:56 -0800)
commited8d7fcaa2965216d44388fd00a757c8d55e7395
tree8e04c2457944d8e829c1eacd5eadcf68d0ad0ba6
parent783b7b7551b197fdcfd384ac4a3d93302a073eaf
Generalize "animated" images to "multi-frame" images

* lisp/image.el (image-animated-types): Remove.
(image-multi-frame-p): Rename from image-animated-p, and generalize.
(image-animated-p): Make obsolete alias.
(image-animate, image-nth-frame, image-animate-timeout):
Use image-multi-frame-p.
(image-animate-timeout): If no delay, use image-default-frame-delay.

* lisp/image-mode.el (image-mode, image-toggle-animation):
Use image-multi-frame-p.
(image-mode): Adjust startup message for a multi-frame image.

* lisp/gnus/shr.el (shr-put-image): Only animate images that specify a delay.
This is consistent with the old image-animated-p behavior.

* etc/NEWS: Add placeholder for this.

Fixes: debbugs:10739
etc/NEWS
lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/gnus/shr.el
lisp/image-mode.el
lisp/image.el