From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Image cache Date: Thu, 09 Feb 2006 21:18:16 +0200 Organization: JURTA Message-ID: <87fymsfj7v.fsf@jurta.org> References: <87bqxjjwii.fsf_-_@jurta.org> <878xsmewfo.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139522303 30688 80.91.229.2 (9 Feb 2006 21:58:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2006 21:58:23 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 22:58:18 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F7Jng-00007k-LQ for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2006 22:58:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7JnI-00065t-GY for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2006 16:57:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7HZt-0003Xq-KU for emacs-devel@gnu.org; Thu, 09 Feb 2006 14:35:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7HZq-0003Vo-Ch for emacs-devel@gnu.org; Thu, 09 Feb 2006 14:35:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7HZm-0003Ua-Mi for emacs-devel@gnu.org; Thu, 09 Feb 2006 14:35:37 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7Hcd-0005Ky-03; Thu, 09 Feb 2006 14:38:31 -0500 Original-Received: from mail.neti.ee (80-235-37-98-dsl.mus.estpak.ee [80.235.37.98]) by Relayhost1.neti.ee (Postfix) with ESMTP id 244086059; Thu, 9 Feb 2006 21:34:44 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Thu, 09 Feb 2006 12:48:42 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50266 Archived-At: > If someone has the time, it seems it migt be worth it to do something along > the following lines: > > - add `loadtime' timestamp to the image data-structure so that staleness can > be detected and a `refresh' function in the image_type data structure > which, given the `loadtime' image `spec' says whether to reload or not. > - provide a new function (image-refresh IMAGE-SPEC). > - make create-image (used by image-toggle-display and others) use that > new function. > > Would someone please add that to etc/TODO? 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? Maybe to find all the Emacs features that use images, and add `clear-image-cache'? -- Juri Linkov http://www.jurta.org/emacs/