From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Delayed loading of image libraries Date: Fri, 02 Jul 2004 10:16:03 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040701110632.415E.JMBARRANQUERO@wke.es> <20040701120343.4161.JMBARRANQUERO@wke.es> Reply-To: Miles Bader NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088731215 13895 80.91.224.253 (2 Jul 2004 01:20:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2004 01:20:15 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 02 03:20:06 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 1BgCik-0002Pe-00 for ; Fri, 02 Jul 2004 03:20:06 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgCik-0003HA-00 for ; Fri, 02 Jul 2004 03:20:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgCkX-0006Kd-BB for emacs-devel@quimby.gnus.org; Thu, 01 Jul 2004 21:21:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgCkP-0006KX-61 for emacs-devel@gnu.org; Thu, 01 Jul 2004 21:21:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgCkN-0006KL-Na for emacs-devel@gnu.org; Thu, 01 Jul 2004 21:21:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgCkN-0006KI-LE for emacs-devel@gnu.org; Thu, 01 Jul 2004 21:21:47 -0400 Original-Received: from [202.32.8.202] (helo=TYO202.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgCiO-0006l3-Gr; Thu, 01 Jul 2004 21:19:45 -0400 Original-Received: from mailgate4.nec.co.jp (mailgate53.nec.co.jp [10.7.69.184]) by TYO202.gate.nec.co.jp (8.11.7/3.7W01080315) with ESMTP id i621GCY12073; Fri, 2 Jul 2004 10:16:12 +0900 (JST) Original-Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id i621GB712083; Fri, 2 Jul 2004 10:16:11 +0900 (JST) Original-Received: from edtmg03.lsi.nec.co.jp ([10.26.16.203]) by mailsv5.nec.co.jp (8.11.7/3.7W-MAILSV4-NEC) with ESMTP id i621GAU24859; Fri, 2 Jul 2004 10:16:10 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edtmg03.lsi.nec.co.jp (8.12.10/8.12.10) with ESMTP id i621G7uL003935; Fri, 2 Jul 2004 10:16:08 +0900 (JST) Original-Received: from mctpc71 (mctpc71.ucom.lsi.nec.co.jp [10.30.118.121]) by mcsss2.ucom.lsi.nec.co.jp (8.12.10/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id i621G5Im004420; Fri, 2 Jul 2004 10:16:05 +0900 (JST) Original-Received: by mctpc71 (Postfix, from userid 31295) id 838EF48D; Fri, 2 Jul 2004 10:16:03 +0900 (JST) Original-To: Juanma Barranquero System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <20040701120343.4161.JMBARRANQUERO@wke.es> (Juanma Barranquero's message of "Thu, 01 Jul 2004 12:13:47 +0200") Original-Lines: 26 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:25371 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25371 Juanma Barranquero writes: >> Images are (currently) perfectly valid lisp values; if we don't want >> them to be readable and writable to files, we should make them an opaque >> type. > > Reading and writing a lisp value (whether an image, or any other kind) > does not need image support. *Processing* one of such values as an > image (to display it, ask questions about it, etc.) does need it. At > that point, code should've asked whether the image type was available. > I'm not sure why you do conflate reading/writing with using-as-an-image > (even if loading an image-representing lisp value ends up displaying it). You're misreading what I wrote; the point of mentioning reading/writing is that an `image' in Emacs lisp is just an ordinary lisp value, which can be stored to a file (using print or whatever), and read back into a new session. Previously, the value returned by `create-image' was a valid image, which could be displayed, even if saved to a file and read back in a new emacs session. After your change for windows, this was not true any longer. This was a regression, and my change was intended to fix it. -Miles -- P.S. All information contained in the above letter is false, for reasons of military security.