From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: alternative to (require ...) Date: Tue, 24 Feb 2004 16:32:51 +0000 Organization: Ye 'Ol Disorganized NNTPCache groupie Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040224163251.5739e4cd@deasker> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1077641411 8934 80.91.224.253 (24 Feb 2004 16:50:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2004 16:50:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 24 17:49:58 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Avfkr-0001P4-00 for ; Tue, 24 Feb 2004 17:49:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AvfjK-0002ut-KQ for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2004 11:48:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!feed3.jnfs.ja.net!jnfs.ja.net!server6.netnews.ja.net!times.reader.netnews.ja.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: glencoe.hw.ac.uk Original-X-Trace: times.reader.netnews.ja.net 1077640373 28360 137.195.150.11 (24 Feb 2004 16:32:53 GMT) Original-X-Complaints-To: usenet@times.reader.netnews.ja.net Original-NNTP-Posting-Date: Tue, 24 Feb 2004 16:32:53 +0000 (UTC) X-Newsreader: Sylpheed version 0.9.9claws (GTK+ 1.2.10; sparcv9-sun-solaris2.8) Cache-Post-Path: glencoe.hw.ac.uk!unknown@deasker.ma.hw.ac.uk X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Original-Xref: shelby.stanford.edu gnu.emacs.help:121194 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17145 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17145 hi there, most of the 3rd party packages i have for emacs (such as color-theme, php-mode, htmlize) are loaded in my ~/.emacs file by statements such as (require 'htmlize) but if this package is not installed on the system, emacs bails on loading the rest of my ~/.emacs file. this is quite annoying as i like to maintain a single ~/.emacs file and use it wherever i am using emacs. is there an alternative command i can use, which doesn't result in emacs crying if it can't find the package? or at least if there is an "if exists" check i could do and incorporate into a wrapper function, say called (requests ...) cheers, Sam -- Free High School Science Texts http://savannah.nongnu.org/projects/fhsst Sam's Homepages http://fommil.homeunix.org/~samuel http://www.ma.hw.ac.uk/~samuel