From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.help Subject: Re: alternative to (require ...) Date: Tue, 24 Feb 2004 18:36:26 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20040224163251.5739e4cd@deasker> <403B882C.7030204@yahoo.com> Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077650987 2050 80.91.224.253 (24 Feb 2004 19:29:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2004 19:29:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 24 20:29:37 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 1AviFM-00078H-00 for ; Tue, 24 Feb 2004 20:29:36 +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 1Avggq-0004K0-KF for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2004 12:49:52 -0500 Original-Newsgroups: gnu.emacs.help X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:JhyU82vrTsi8AUNOa1YXy8Rv5K0= Original-NNTP-Posting-Host: lumberjack.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1077644211 134.60.10.173 (24 Feb 2004 18:36:51 +0100) Original-Lines: 31 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!news.belwue.de!news.uni-ulm.de!lumberjack.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:121205 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:17163 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17163 On Tue, Feb 24 2004, Kevin Rodgers wrote: > Sam Halliday wrote: > >> 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) Often you can `autoload' some functions instead of requiring the whole package. > (condition-case nil > (require 'foo) > (error nil)) What's wrong with (require 'foo nil t)? ,----[ C-h f require RET ] | require is a built-in function. | (require FEATURE &optional FILENAME NOERROR) | | [...] | If the optional third argument NOERROR is non-nil, | then return nil if the file is not found instead of signaling an error. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/