[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speed up Emacs startup
From: |
Stefan Monnier |
Subject: |
Re: Speed up Emacs startup |
Date: |
Thu, 24 Nov 2005 23:26:06 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> 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))
The try-require does the same, just more efficiently: when the library is
absent, locate-library and try-require both just go through all the dirs in
load-path and then give up (i.e. no difference). But if the lib is present,
then in your case locate-library will go through load-path once and require
will go through it again a second time (and it may still signal an error so
you still want to protect yourself against failure).
Stefan
- Re: List of major modes?, (continued)
Re: List of major modes?, rgb, 2005/11/09
- Speed up Emacs startup, Sébastien Vauban, 2005/11/22
- Re: Speed up Emacs startup, Anselm Helbig, 2005/11/22
- Re: Speed up Emacs startup, Sébastien Vauban, 2005/11/22
- Re: Speed up Emacs startup, Anselm Helbig, 2005/11/22
- Re: Speed up Emacs startup, Sébastien Vauban, 2005/11/22
- Re: Speed up Emacs startup, Anselm Helbig, 2005/11/22
- Re: Speed up Emacs startup, Ismael Valladolid Torres, 2005/11/23
- Message not available
- Re: Speed up Emacs startup, Jason Rumney, 2005/11/24
- Message not available
- Re: Speed up Emacs startup,
Stefan Monnier <=
Re: Speed up Emacs startup, Lennart Borgman, 2005/11/22
Re: Speed up Emacs startup, Stefan Monnier, 2005/11/22
Re: List of major modes?, David Reitter, 2005/11/11
- Re: List of major modes?, Henrik Enberg, 2005/11/11
- RE: List of major modes?, Drew Adams, 2005/11/11
- Re: List of major modes?, Lennart Borgman, 2005/11/11
- Re: List of major modes?, David Reitter, 2005/11/11
- Re: List of major modes?, Lennart Borgman, 2005/11/11
- Message not available
- Re: List of major modes?, Lennart Borgman, 2005/11/14
- Re: List of major modes?, Stefan Monnier, 2005/11/14