From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: How to Reduce Emacs Load Time Date: Mon, 01 Sep 2008 00:24:45 +0200 Message-ID: References: <18aba2b0-4fc7-4588-b69f-d9f46b264b03@q26g2000prq.googlegroups.com> <87r686rwmj.fsf@hubble.informatimago.com> <00aa598d-0849-410a-8424-1dc9db97c5e1@r35g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220221515 10954 80.91.229.12 (31 Aug 2008 22:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Aug 2008 22:25:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: formido Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 01 00:26:08 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZvN1-0000wD-2S for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 00:26:07 +0200 Original-Received: from localhost ([127.0.0.1]:46930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZvM1-0000Gt-Sy for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Aug 2008 18:25:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZvLk-0000Gl-AA for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 18:24:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZvLj-0000GZ-RM for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 18:24:47 -0400 Original-Received: from [199.232.76.173] (port=51335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZvLj-0000GW-Lu for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 18:24:47 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:52387) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZvLj-00047E-Et for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 18:24:47 -0400 Original-Received: from arwen.uni-trier.de (BAH0d31.bah.pppool.de [77.135.13.49]) by dd18200.kasserver.com (Postfix) with ESMTP id E1B941823C6B6; Mon, 1 Sep 2008 00:24:52 +0200 (CEST) In-Reply-To: <00aa598d-0849-410a-8424-1dc9db97c5e1@r35g2000prm.googlegroups.com> (formido@gmail.com's message of "Sun\, 31 Aug 2008 10\:39\:27 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:57160 Archived-At: formido wrote: > I could set cedet to load when a feature I know about is activated, > like cc-mode, but I'm worried that with all that going on above, all > sorts of features and hooks are being set up that I'll then never find > out about. Well, CEDET is a huge beast. It even contains some sort of OO system for lisp. I wouldn't think about it too much, there's not much you can do to speed it up. I already said, I only load it after cc-mode, but actually, I also start loading it whenever my Emacs is idle. I've written a package to do facilitate this. http://nschum.de/src/emacs/idle-require/ > My elisp-foo is still weak: if I understand right, this function only > works if the packages have been tagged with appropriate metadata, > i.e., autoload markers? Yes, but many packages come with those markers. (All bundled packages use the mechanism as well.) You can tell if a package supports this by checking if the file contains the text. ;;;###autoload regards, Nikolaj Schumacher