From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: Speed up Emacs startup Date: Thu, 24 Nov 2005 10:03:41 +0000 Organization: freedom2surf Message-ID: References: <1131555901.719511.200390@z14g2000cwz.googlegroups.com> <87oe4dszer.wl@nospam.anselm.chemie.fu-berlin.de> <87psosrcyh.wl@nospam.anselm.chemie.fu-berlin.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1132834506 9843 80.91.229.2 (24 Nov 2005 12:15:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2005 12:15:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 13:15:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EfG03-0006i4-6B for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2005 13:14:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EfG01-0007EQ-Qk for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2005 07:14:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!peer.news.zetnet.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: i-83-67-23-108.freedom2surf.net Original-X-Trace: news.freedom2surf.net 1132826710 30109 83.67.23.108 (24 Nov 2005 10:05:10 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Thu, 24 Nov 2005 10:05:10 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:0fDyWG2rGzSH315Z8VLiliTStZw= Original-Xref: shelby.stanford.edu gnu.emacs.help:135714 Original-To: help-gnu-emacs@gnu.org 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:31317 Archived-At: Ismael Valladolid Torres writes: > Sébastien Vauban wrote: > >> I've completely avoided that problem by using a `try-require' >> function: if the package is not installed, it'll just go on as >> if nothing happened. > > Why not just using locate-library to require the package only if it's > installed and locatable? There are plenty of sentences like this in my > .emacs: > > (when (locate-library "muttrc") > (require 'muttrc)) Why not just use the optional third argument to require? (require 'muttrc nil t)