From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk-Jan C. Binnema Newsgroups: gmane.emacs.help Subject: Re: test for presence of library Date: Sat, 20 Feb 2010 01:12:41 +0200 Organization: DJCBSoftware Message-ID: <87aav4vmza.wl%djcb@djcbsoftware.nl> References: <87mxz6116b.fsf@galatea.lan.informatimago.com> <873a0wq35z.fsf@newsguy.com> Reply-To: djcb@djcbsoftware.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1266623059 25161 80.91.229.12 (19 Feb 2010 23:44:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2010 23:44:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Harry Putnam Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 20 00:44:11 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 1NicW0-0004Ok-V1 for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Feb 2010 00:44:09 +0100 Original-Received: from localhost ([127.0.0.1]:35026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NicW0-0006Qm-Dc for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 18:44:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NicVY-0006OR-CD for help-gnu-emacs@gnu.org; Fri, 19 Feb 2010 18:43:40 -0500 Original-Received: from [140.186.70.92] (port=49777 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NicVX-0006Mc-CR for help-gnu-emacs@gnu.org; Fri, 19 Feb 2010 18:43:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NicVW-00024W-CM for help-gnu-emacs@gnu.org; Fri, 19 Feb 2010 18:43:39 -0500 Original-Received: from gw01.mail.saunalahti.fi ([195.197.172.115]:51163) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NicVW-00024G-5Y for help-gnu-emacs@gnu.org; Fri, 19 Feb 2010 18:43:38 -0500 Original-Received: from djcbsoftware.nl (a88-114-93-212.elisa-laajakaista.fi [88.114.93.212]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 9410215150B; Sat, 20 Feb 2010 01:43:28 +0200 (EET) Original-Received: from cthulhu.mindcrime.djcbsoftware.nl (localhost [127.0.0.1]) by djcbsoftware.nl (Postfix) with ESMTP id 24AF139C031; Sat, 20 Feb 2010 01:12:41 +0200 (EET) In-Reply-To: <873a0wq35z.fsf@newsguy.com> Mail-Reply-To: djcb@djcbsoftware.nl User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:71966 Archived-At: >>>>> "HP" == Harry Putnam writes: HP> But looking at the suggested documentation I'm left non the wiser: HP> (require FEATURE &optional FILENAME NOERROR) HP> That isn't going to get it for me.. I've tried a few arrangements but HP> being an idiot and all, I have no idea how something optional is HP> introduced into the require. (when (require 'foo nil 'noerror) ;; do something with foo ) is a common pattern to deal with such things. Best wishes, Dirk. -- Dirk-Jan C. Binnema Helsinki, Finland e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C