emacs-devel
[Top][All Lists]
Advanced

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

Re: Some images make Emacs behave strangely


From: David Kastrup
Subject: Re: Some images make Emacs behave strangely
Date: Mon, 30 Aug 2010 10:35:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Lars Magne Ingebrigtsen <address@hidden> writes:
>
>> Here's an image from the pheedo web tracking ad thingie whatever:
>>
>> address@hidden ~/pgnus]$ file /tmp/a
>> /tmp/a: GIF image data, version 89a, 1 x 1
>>
>> However:
>>
>> (image-size (create-image "/tmp/a") t)
>> => (30 . 30)
>>
>> And inserting that image into the buffer yields an empty 30x30 box:
>>
>> (put-image (create-image "/tmp/a") (point))
>
> Emacs fails to load the image, because DGifSlurp returns GIF_ERROR when
> we try to load its contents into memory.  I dunno what else we could do
> to avoid failing (or why the GIMP seems to be able to handle this gif).

The question is not how to avoid failing, but how make Emacs accept
failure.  Emacs goes into a busy, display-thrashing loop making it
rather unresponsive.

-- 
David Kastrup




reply via email to

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