From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: test for presence of library Date: Thu, 18 Feb 2010 16:56:04 -0600 Organization: Still searching... Message-ID: <87635uqhkr.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266534223 25747 80.91.229.12 (18 Feb 2010 23:03:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 23:03:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 19 00:03:41 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NiFPJ-0003zr-0a for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 00:03:41 +0100 Original-Received: from localhost ([127.0.0.1]:54970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiFPI-0001es-LC for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 18:03:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiFIH-0007VC-ED for help-gnu-emacs@gnu.org; Thu, 18 Feb 2010 17:56:25 -0500 Original-Received: from [140.186.70.92] (port=41972 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiFIG-0007Ui-2V for help-gnu-emacs@gnu.org; Thu, 18 Feb 2010 17:56:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiFIF-0004fA-91 for help-gnu-emacs@gnu.org; Thu, 18 Feb 2010 17:56:23 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:56533) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiFIE-0004f4-VB for help-gnu-emacs@gnu.org; Thu, 18 Feb 2010 17:56:23 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NiFIC-0006rc-Nv for help-gnu-emacs@gnu.org; Thu, 18 Feb 2010 23:56:20 +0100 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Feb 2010 23:56:20 +0100 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Feb 2010 23:56:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:y/0jAsWEIZoaDK3sWkILp5WUNXA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71937 Archived-At: Can one test for the presence of a library before requiring it? I mean in the way one might test for the presence of a file in common shell script; if [ -f /my/file ];then blab blab fi Only here we are testing for the presence of a library somewhere in the load path rather than a specific file location. The lisp equivalent of: if some-lib then (require some-lib) fi