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: display word wrapping Date: Fri, 04 Jun 2004 11:09:28 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040604110038.74A0.JMBARRANQUERO@wke.es> References: <20040604031601.5A63.LEKTU@mi.madritel.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 1086340211 4191 80.91.224.253 (4 Jun 2004 09:10:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2004 09:10:11 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 04 11:10:04 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 1BWAiB-00039P-00 for ; Fri, 04 Jun 2004 11:10:03 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BWAiB-0005UN-00 for ; Fri, 04 Jun 2004 11:10:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BWAiY-0004iv-Bc for emacs-devel@quimby.gnus.org; Fri, 04 Jun 2004 05:10:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BWAiL-0004gE-Cj for emacs-devel@gnu.org; Fri, 04 Jun 2004 05:10:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BWAiJ-0004fF-84 for emacs-devel@gnu.org; Fri, 04 Jun 2004 05:10:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BWAiJ-0004fC-4L for emacs-devel@gnu.org; Fri, 04 Jun 2004 05:10:11 -0400 Original-Received: from [62.22.181.117] (helo=idefix.laley.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BWAhd-0001x8-GQ; Fri, 04 Jun 2004 05:09:29 -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 LSNJ56NP; Fri, 4 Jun 2004 11:09:01 +0200 Original-To: storm@cua.dk (Kim F. Storm) 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:24514 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24514 On 04 Jun 2004 10:07:10 +0200 storm@cua.dk (Kim F. Storm) wrote: > (defun image-type-available-p (type) > (prog1 > (memq type (init-image-libraries image-library-alist)) > (setq image-library-alist nil))) > > supposing that init-image-libraries just returns the current image-types > if image-library-alist is nil (and the updated list otherwise). Yes, that's what it does: it always returns image-types (which is already updated if any image lib is ever loaded). I've implemented image-type-available-p as you say; to do so, I've updated init-image-libraries to do nothing (except returning image-types) if its argument is nil, as this is going to be the most frequent use. > And then we could discard the image-types variable alltogether -- > except that it is still probably good for debugging/error reporting > purposes. Well, I use it in my patch to check whether images are loaded (I could use the image_types list, though, but I also think is better to keep image-types). > Do you mean that it returns nil if no changes were made to image-types? > I think that it should just return image-types in all cases. Bad wording, sorry. image-types is always returned. New question. I'm doing for (dlls = XCDR (dlls); !NILP (dlls); dlls = XCDR (dlls)) if (!CONSP (dlls) || !STRINGP (XCAR (dlls))) error ("Invalid data in library alist"); else if (library = LoadLibrary (SDATA (XCAR (dlls)))) break; What if I wanted to show in the error the wrong data? I cannot use "SDATA (dlls)" because dlls it could be anything: (init-image-libraries '((gif . I'm-bad-bad-bad))) Juanma