From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#6981: create-animated-image doesn't animate Date: Mon, 06 Sep 2010 22:11:22 +0800 Message-ID: <87k4mzm06t.fsf@home.jasonrumney.net> References: <87wrr2ld3q.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283784046 6745 80.91.229.12 (6 Sep 2010 14:40:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 14:40:46 +0000 (UTC) Cc: 6981@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 06 16:40:42 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OscsB-00073o-Kr for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 16:40:39 +0200 Original-Received: from localhost ([127.0.0.1]:48171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OscsB-00072H-0Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 10:40:39 -0400 Original-Received: from [140.186.70.92] (port=34410 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oscre-0006pw-6D for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2010 10:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oscra-0006k4-V9 for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2010 10:40:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51646) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oscra-0006k0-TQ for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2010 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OscOZ-00061D-4c; Mon, 06 Sep 2010 10:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Sep 2010 14:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6981 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6981-submit@debbugs.gnu.org id=B6981.128378217623121 (code B ref 6981); Mon, 06 Sep 2010 14:10:03 +0000 Original-Received: (at 6981) by debbugs.gnu.org; 6 Sep 2010 14:09:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OscO8-00060s-0H for submit@debbugs.gnu.org; Mon, 06 Sep 2010 10:09:36 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OscO6-00060m-Vg for 6981@debbugs.gnu.org; Mon, 06 Sep 2010 10:09:35 -0400 Original-Received: by pvg7 with SMTP id 7so1475301pvg.3 for <6981@debbugs.gnu.org>; Mon, 06 Sep 2010 07:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=tldsK4BovchzlW5Zt/Cjgn6MJLGDH1E1aXh/URRc/lg=; b=TiZuGTBG+6tPC4bir57Dux/kyNBesi/5o5HNty7EkmrOxWW3cLPtBAQMTQW59y0LUU w2QkKLG1eamOKPFsqLWtlYDNsm+xR7zRGgIyr3Fr15n4a6Z4BdibRmA2+ymMXR0XVq6o EU50BPm0bSyNxWxeh/uQK97blcBu2oiWPhfe8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=eLAjYZAEpXp7Od+lyP602pMYOtZOaLz2IoGna8wmFejp/ynm/wSgXR7y7NBRCcRK9R DTJrz3+5zJFkCEe3iXdSflAIuiiys62U7zwKpXZt+1FmrRuxkf2cQcpL+M5IFH9l2MFq mUvHI652fx9Lw2Kk6qY7boSe9nn4dxVpJOogU= Original-Received: by 10.142.61.41 with SMTP id j41mr2548150wfa.346.1283782287833; Mon, 06 Sep 2010 07:11:27 -0700 (PDT) Original-Received: from home.jasonrumney.net ([202.87.221.130]) by mx.google.com with ESMTPS id 9sm4256427wfd.0.2010.09.06.07.11.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 07:11:26 -0700 (PDT) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id D0D80CB5; Mon, 6 Sep 2010 22:11:22 +0800 (MYT) In-Reply-To: <87wrr2ld3q.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 03 Sep 2010 21:40:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 06 Sep 2010 10:10:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40005 Archived-At: Juri Linkov writes: > When looking at the attached animated image closer/farther to/from the screen, > the face appears/disappears. When looking with/without glasses, the face > appears/disappears. But when looking at it in Emacs, nothing changes. Note the following limitation mentioned in the comment in image.c: /* Clear the part of the screen image that are not covered by the image from the GIF file. Full animated GIF support requires more than can be done here (see the gif89 spec, disposal methods). Let's simply assume that the part not covered by a sub-image is in the frame's background color. */ The following seems to show the image animation with this limitation (the black bars of the first frame disappear rather than remaining in the transparent background of following frames): (setq img (create-animated-image "~/oii.gif")) (insert-image img) (image-animate-start img) The last line seems to be neccesary, even though create-animated-image starts the animation itself. Other changes to the buffer contents seem to stop the animation so that line needs to be evaluated again.