From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r113822: Add a test for decompressing gzipped data Date: Tue, 13 Aug 2013 19:27:26 +0300 Message-ID: <83bo51pndd.fsf@gnu.org> References: <83iozapan0.fsf@gnu.org> <520A471E.8090803@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376411316 15431 80.91.229.3 (13 Aug 2013 16:28:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 16:28:36 +0000 (UTC) Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 13 18:28:37 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9HSX-0004eE-AB for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 18:28:37 +0200 Original-Received: from localhost ([::1]:59747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9HSW-000709-Sg for ged-emacs-devel@m.gmane.org; Tue, 13 Aug 2013 12:28:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9HSN-0006wi-Vc for emacs-devel@gnu.org; Tue, 13 Aug 2013 12:28:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9HSJ-0008LX-6N for emacs-devel@gnu.org; Tue, 13 Aug 2013 12:28:27 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9HSI-0008LI-UH for emacs-devel@gnu.org; Tue, 13 Aug 2013 12:28:23 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRH002009O74K00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 13 Aug 2013 19:26:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRH001PS9OZY750@a-mtaout20.012.net.il>; Tue, 13 Aug 2013 19:26:59 +0300 (IDT) In-reply-to: <520A471E.8090803@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162668 Archived-At: > Date: Tue, 13 Aug 2013 07:47:58 -0700 > From: Paul Eggert > CC: Eli Zaretskii , larsi@gnus.org, emacs-devel@gnu.org > > Stefan Monnier wrote: > > The best would really be > > > > (if (fboundp 'zlib-decompress-region) > > (zlib-decompress-region ...) > > blabla) > > > > but I guess we can't have that because we also want to lazy-load the > > zlib shared library, right? > > fboundp itself could do the lazy load, no? > Or we could have an fboundp variant that > does that. That way, we don't need to have > a FOO-available-p function for every loadable > library FOO. There are situations where testing the availability of a feature without actually invoking the feature makes a lot of sense. See my other mail for the details. In any case, we decide to get rid of the *-available-p functions, we should do the same with images and gnutls.