[gnus git] branch master updated: m0-5-264-g06f5a69 =1= Generalize "animated" images to "multi-frame" images

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  06f5a69aeb8b3c085fad294022b763f68251bd7a (commit)
      from  98f5834b9573e615f95e910006843a1a03d5c5df (commit)


- Log -----------------------------------------------------------------
commit 06f5a69aeb8b3c085fad294022b763f68251bd7a
Author: Glenn Morris <[email protected]>
Date:   Sun Feb 17 00:09:17 2013 +0000

    Generalize "animated" images to "multi-frame" images
    
    shr.el (shr-put-image): Only animate images that specify a delay.
      This is consistent with the old image-animated-p behavior.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5edf6f6..d50750b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-16  Glenn Morris  <[email protected]>
+
+	* shr.el (shr-put-image): Only animate images that specify a delay.
+	This is consistent with the old image-animated-p behavior.
+
 2013-02-14  Katsumi Yamaoka  <[email protected]>
 
 	* gnus-util.el (gnus-define-keys): Convert [?\S-\ ] to [(shift space)]
diff --git a/lisp/shr.el b/lisp/shr.el
index c9bf324..1294ca7 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -615,7 +615,8 @@ size, and full-buffer size."
 		  (overlay-put overlay 'face 'default)))
 	    (insert-image image (or alt "*")))
 	  (put-text-property start (point) 'image-size size)
-	  (when (image-animated-p image)
+	  ;; Only animate multi-frame things that specify a delay.  FIXME?
+	  (when (cdr (image-animated-p image))
 	    (image-animate image nil 60)))
 	image)
     (insert alt)))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    5 +++++
 lisp/shr.el    |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.