emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image display in MinGW build?


From: David Abrahams
Subject: Re: image display in MinGW build?
Date: Mon, 08 May 2006 06:59:52 -0400
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (windows-nt)

"Juanma Barranquero" <address@hidden> writes:

> In a fully configured MinGW build, `image-types' contains '(png gif
> tiff jpeg xpm xbm pbm). 

That's what mine says.

> 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.

(reduce 
   (lambda (state type) (and state (image-type-available-p type))) 
   image-types)

yields 't'  :)

> 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.

Oh, that explains why one of my tests failed.  Thanks!

> Hope this helps,

It does, thanks again.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]