emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] trunk r113822: Add a test for decompressing gzipped da


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] trunk r113822: Add a test for decompressing gzipped data
Date: Tue, 13 Aug 2013 05:50:11 +0300

> From: Stefan Monnier <address@hidden>
> Date: Mon, 12 Aug 2013 21:56:11 -0400
> Cc: address@hidden
> 
> > +  (when (and (fboundp 'zlib-available-p)
> > +        (zlib-available-p))
> > +          (zlib-decompress-region (point-min) (point-max))
> 
> Could you clarify the difference between:
> 
>    (fboundp 'zlib-available-p)
> and
>    (zlib-available-p)
> and
>    (fboundp 'zlib-decompress-region)
> 
> IOW, when can they return different values, and why?

The 2 fboundp tests return non-nil when Emacs was built with zlib
support.  zlib-available-p can return nil on MS-Windows, when the zlib
shared library is not available, even though Emacs was built with zlib
support.  On platforms other than Windows, the fboundp tests and
testing the return value of zlib-available-p are equivalent.



reply via email to

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