emacs-devel
[Top][All Lists]
Advanced

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

Re: Image cache


From: Chong Yidong
Subject: Re: Image cache
Date: Fri, 10 Feb 2006 21:14:45 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Miles Bader <address@hidden> writes:

> On 2/11/06, Richard M. Stallman <address@hidden> wrote:
>>     But it is a bug that the image cache doesn't get updated when the image 
>> file
>>     content changes.  Is there an easy way to fix it?
>>
>> Fixing this would be desirable.  One way to do it would
>> be to store the file's modtime in the image cache.
>> Then any reference to the cache could stat the file
>> to see if it has changed, and reload it if necessary.
>>
>> That is pretty simple in theory.  Is it simple in practice?
>
> One certainly doesn't want to do a stat on _every_ reference, as stats
> can be expensive (and the thumbs package will tend to use lots of
> images)

I think a good way to do it is to provide a function that Lisp
programs can use to reload a specific cached image (rather than the
entire cache).




reply via email to

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