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: Juanma Barranquero
Subject: Re: [Emacs-diffs] trunk r113822: Add a test for decompressing gzipped data
Date: Tue, 13 Aug 2013 05:45:01 +0200

On Tue, Aug 13, 2013 at 4:50 AM, Eli Zaretskii <address@hidden> wrote:

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

In other words, portable elisp code should really do

(and (fboundp 'zlib-available-p) (zlib-available-p))

to check for zlib support. Perhaps it would be worth to encapsulate
that check into (yet another) predicate...

   J



reply via email to

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