From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrei Alexandrescu Newsgroups: gmane.emacs.help Subject: require a package only if present Date: Sat, 11 Jul 2009 12:44:53 -0500 Organization: A noiseless patient Spider Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247337653 32134 80.91.229.12 (11 Jul 2009 18:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jul 2009 18:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 11 20:40:46 2009 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.50) id 1MPhV7-0005rV-SH for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 20:40:46 +0200 Original-Received: from localhost ([127.0.0.1]:42742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPhV7-0003g8-98 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jul 2009 14:40:45 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news2.euro.net!xlned.com!feeder3.xlned.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-X-Trace: news.eternal-september.org U2FsdGVkX19/TmuBnHvGb2Md9m9WPhO7yJpv9RECl4SZnSShzpWuqiI9EzGF1YfQUVwmQngliGf1PXQELhSGHiV6dp8dyh/T+R3+ctFEuuks5ElvX5kFQsGG5jCe7XmNoqjT3+TUQGcLeu4loN/TwcQbxLEMrWb4 Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Sat, 11 Jul 2009 17:49:36 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+e42qCTuJim0/AhmNv/ODqxzbe4CF2xMqGovlvTsW+9A== Cancel-Lock: sha1:7GwB0ufDla4YLbPJ4z8gO6NVk24= User-Agent: Thunderbird 2.0.0.22 (X11/20090608) Original-Xref: news.stanford.edu gnu.emacs.help:170760 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:65961 Archived-At: I am trying to use the same copy of .emacs across various machines. Some, however, don't have certain packages. So I need to replace lines like: (require 'tex-site) with code that checks whether tex-site is present and only loads it if there. How can I do that? Any pointers welcome. Thanks, Andrei