From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: image display in MinGW build? Date: Mon, 8 May 2006 12:38:42 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1147084742 28220 80.91.229.2 (8 May 2006 10:39:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 10:39:02 +0000 (UTC) Cc: David Abrahams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 12:39:00 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 1Fd38l-0005AO-Kk for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 12:38:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd38l-0005sb-5w for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 06:38:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd38Z-0005sL-J0 for emacs-devel@gnu.org; Mon, 08 May 2006 06:38:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd38W-0005rj-5T for emacs-devel@gnu.org; Mon, 08 May 2006 06:38:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd38W-0005rg-1X for emacs-devel@gnu.org; Mon, 08 May 2006 06:38:44 -0400 Original-Received: from [66.249.92.172] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd39K-00020E-F9 for emacs-devel@gnu.org; Mon, 08 May 2006 06:39:34 -0400 Original-Received: by ug-out-1314.google.com with SMTP id h2so1319840ugf for ; Mon, 08 May 2006 03:38:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hZYAL8HRwFJsi6ElUnl1NFnaUcnwFvn2J1PBUhTHj5hH6JEm1Pz+yk5xkUASet+mYrYe88y3tkQ3KwEHIgVHdTEpeiaJiaKR5nQazIAuunN31RPKb3AyxNYT1XOtPfATnwOdjVKbdyIAL2tyWFPAKdflIhrc2PGAJfSPHLn4yXw= Original-Received: by 10.78.58.11 with SMTP id g11mr547980hua; Mon, 08 May 2006 03:38:42 -0700 (PDT) Original-Received: by 10.78.33.18 with HTTP; Mon, 8 May 2006 03:38:42 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: Content-Disposition: inline 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:54079 Archived-At: On 5/8/06, David Abrahams wrote: > But I must've done something wrong > because I just tried again... and it worked! Happy, happy, joy, joy. > Glad it is working; anyway, to help debugging if this happens again to you, you can use the `image-types' variable (which lists the image types known, i.e., their support was compiled in), and the `image-type-available-p' function (which indicates whether the image type is actually available to Emacs). In a fully configured MinGW build, `image-types' contains '(png gif tiff jpeg xpm xbm pbm). If any of them is missing, there was some problem locating the library headers at compile time (assuming they were not explicitly left out with configure.bat, of course). If an image type does appear in `image-types', but (image-type-available-p type) returns nil, Emacs was unable to locate the library .DLL. Note, however, that the result of `image-type-available-p' is cached internally, so if one library is missing and you add it to the path *after* using `image-type-available-p' to try to load this particular image type, it will still return nil until you restart Emacs. Hope this helps, -- /L/e/k/t/u