Mercurial > emacs
diff lisp/image.el @ 107719:9c0ed2d6731a
Rename `image-extension-data' to `image-metadata'.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01456.html
* image.c: Add `Qextension_data'.
(syms_of_image): Initialize and staticpro `Qextension_data'.
(Fimage_metadata): Rename from `Fimage_extension_data'.
(gif_load): Put GIF extension data to the property
`Qextension_data'.
* image.el (image-animated-p): Use `image-metadata' instead of
`image-extension-data'. Get GIF extenstion data from metadata
property `extension-data'.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Wed, 31 Mar 2010 17:55:01 +0300 |
parents | f2fb364fb3ba |
children | 24d486687f54 28a8c62b8ee7 |
line wrap: on
line diff
--- a/lisp/image.el Wed Mar 31 17:28:16 2010 +0300 +++ b/lisp/image.el Wed Mar 31 17:55:01 2010 +0300 @@ -681,8 +681,9 @@ shall be displayed." (cond ((eq (plist-get (cdr image) :type) 'gif) - (let* ((extdata (image-extension-data image)) - (images (plist-get extdata 'count)) + (let* ((metadata (image-metadata image)) + (images (plist-get metadata 'count)) + (extdata (plist-get metadata 'extension-data)) (anim (plist-get extdata #xF9))) (and (integerp images) (> images 1) (stringp anim) (>= (length anim) 4)