unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jasonr (Jason Rumney) @  f2s.com
Subject: Re: Speed up Emacs startup
Date: Thu, 24 Nov 2005 10:03:41 +0000	[thread overview]
Message-ID: <uu0e2wef6.fsf@jasonrumney.net> (raw)
In-Reply-To: mailman.16441.1132736439.20277.help-gnu-emacs@gnu.org

Ismael Valladolid Torres <ismaeval@free.fr> 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)

  parent reply	other threads:[~2005-11-24 10:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.14537.1131532545.20277.help-gnu-emacs@gnu.org>
2005-11-09 17:05 ` List of major modes? rgb
2005-11-22  8:39   ` Speed up Emacs startup Sébastien Vauban
2005-11-22 11:19     ` Anselm Helbig
2005-11-22 12:56       ` Sébastien Vauban
2005-11-22 14:09         ` Anselm Helbig
2005-11-22 16:39           ` Sébastien Vauban
2005-11-23  0:07             ` Anselm Helbig
2005-11-23  8:59             ` Ismael Valladolid Torres
     [not found]             ` <mailman.16441.1132736439.20277.help-gnu-emacs@gnu.org>
2005-11-24 10:03               ` Jason Rumney [this message]
2005-11-25  4:26               ` Stefan Monnier
2005-11-22 14:18     ` Lennart Borgman
2005-11-22 20:11     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uu0e2wef6.fsf@jasonrumney.net \
    --to=jasonr@f2s.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).