emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: animage.el -- animated image support in Emacs


From: Kim F. Storm
Subject: Re: animage.el -- animated image support in Emacs
Date: Mon, 24 Apr 2006 02:37:32 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

address@hidden (Kim F. Storm) writes:

> Below you will find animage.el which enables Emacs to show animated GIF
> files using the following code:
>

With the following patch to image-mode.el, visiting an animated GIF
files will automatically animate it.

However, if we do this, the animage.el should be preloaded, and as
such it could just as well be merged into image.el.


Index: lisp/image-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/image-mode.el,v
retrieving revision 1.11
diff -u -r1.11 image-mode.el
--- lisp/image-mode.el  18 Apr 2006 21:21:08 -0000      1.11
+++ lisp/image-mode.el  24 Apr 2006 00:36:58 -0000
@@ -145,8 +145,8 @@
                     (not (and (boundp 'tar-superior-buffer)
                               tar-superior-buffer)))
                (progn (clear-image-cache)
-                      (create-image (buffer-file-name)))
-             (create-image
+                      (create-animated-image (buffer-file-name)))
+             (create-animated-image
               (string-make-unibyte
                (buffer-substring-no-properties (point-min) (point-max)))
               nil t)))

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]