From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Delayed loading of image libraries Date: Fri, 02 Jul 2004 09:41:53 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040702093521.CF34.JMBARRANQUERO@wke.es> References: <20040702085419.CF31.JMBARRANQUERO@wke.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1088754157 22933 80.91.224.253 (2 Jul 2004 07:42:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2004 07:42:37 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org, Miles Bader Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 02 09:42:27 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgIgl-0005S9-00 for ; Fri, 02 Jul 2004 09:42:27 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgIgl-0001Bo-00 for ; Fri, 02 Jul 2004 09:42:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgIiZ-00011h-0T for emacs-devel@quimby.gnus.org; Fri, 02 Jul 2004 03:44:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgIiT-00010D-5B for emacs-devel@gnu.org; Fri, 02 Jul 2004 03:44:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgIiP-0000yB-JN for emacs-devel@gnu.org; Fri, 02 Jul 2004 03:44:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgIiP-0000y5-F3 for emacs-devel@gnu.org; Fri, 02 Jul 2004 03:44:09 -0400 Original-Received: from [62.22.181.117] (helo=idefix.laley.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgIgE-0008UO-2S; Fri, 02 Jul 2004 03:41:54 -0400 Original-Received: from [172.17.221.23] (JMBARRANQUERO [172.17.221.23]) by idefix.laley.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id NZ3RG2T9; Fri, 2 Jul 2004 09:40:20 +0200 Original-To: David Kastrup In-Reply-To: X-Mailer: Becky! ver. 2.08.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25376 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25376 On 02 Jul 2004 09:10:55 +0200 David Kastrup wrote: > It is > not fine if an Emacs supporting PNG does not display a PNG. Sure. But currently, an Emacs supporting PNG *will* display a PNG if the library is made available (either statically or dynamically). Miles thinks (or so I understand) that the responsability of making the library available rests on lookup_image_type. I believe the proper thing to do is, at some point, calling `image-type-available-p'. > > After loading, Emacs *must* ask at a moment or other whether the > > image type is available, mustn't it? > > How about when displaying it? And is not exactly that what I propose? > Why should image-type-available-p have been called? Because, AFAICS, is the only documented way to know whether a given image type is supported. Juanma