From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Tracing what is loading Date: Sun, 07 Dec 2008 22:46:20 -0600 Organization: Still searching... Message-ID: <87myf7e0kj.fsf@newsguy.com> References: <873ah0ombf.fsf@newsguy.com> <87r64jeg55.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228711633 8752 80.91.229.12 (8 Dec 2008 04:47:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 04:47:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 05:48:17 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 1L9Y2Y-0006oW-8n for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 05:48:14 +0100 Original-Received: from localhost ([127.0.0.1]:49542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9Y1N-0003B2-FZ for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 23:47:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9Y13-0003Ab-53 for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 23:46:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9Y11-00039E-Fi for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 23:46:39 -0500 Original-Received: from [199.232.76.173] (port=39266 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9Y11-000390-CL for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 23:46:39 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:45574 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9Y10-0000Gi-W3 for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 23:46:39 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L9Y0t-0007mG-He for help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 04:46:31 +0000 Original-Received: from c-98-215-178-6.hsd1.in.comcast.net ([98.215.178.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Dec 2008 04:46:31 +0000 Original-Received: from reader by c-98-215-178-6.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Dec 2008 04:46:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-6.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:uuuy52paRUJ56KQCV8aQbwW88Ts= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:60439 Archived-At: "Juanma Barranquero" writes: > Fload is the `load' function. If you search the C code, you'll see > that emacs lisp functions defined in C are called F + name of > function. > > What I wanted to say is that the load function is defined in C (and > called Fload in the C code), so if you advise it you won't get > information about the times it is called from other C code (search > Fload in the src/ directory to see where does that happen). But you > can modify Fload and add code to show what it is loading. I see, so the more I think about this the more it looks pretty daunting. One thing that should make it easier though is that I don't really need to track the c code.. What I'm after is to get something into the init process ahead of everything else. Something that reports what is loading... (except c code). My aim is to get one jump ahead of the OS developers who think they need to interfere or `direct' emacs for me. To me it can be pretty confusing to determine what is happening as emacs starts up. I'm just trying to see what files get loaded before my own `site-start' file, So I can either head it off or leave it alone depending on what it seems to try to do. The `site' in this case is just a single user machine so no problems dealing with disgruntled users if I do stuff in site-start.el in order to keep .emacs to some sensible size. >From Dmitrys' post I got the URL: (info "(elisp) Standard Hooks") And tracked it into this section where I found this: (info "(elisp) Init File") -- Variable: before-init-hook This normal hook is run, once, just before loading all the init files (the user's init file, `default.el', and/or `site-start.el'). (The only way to change it with real effect is before dumping Emacs.) Its not at all clear what it means to say it is `run' once but it doesn't really sound like it can be taken advantage of. If so; Would this involve just a text edit? I'm not at all sure how to take advantage of a `hook'. I have a few in my init files but they are blatantly plagerized here or some other group like the gnus groups.