From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Tracing what is loading
Date: Sun, 07 Dec 2008 22:46:20 -0600 [thread overview]
Message-ID: <87myf7e0kj.fsf@newsguy.com> (raw)
In-Reply-To: f7ccd24b0812071641l42452174x183182b31ff128bf@mail.gmail.com
"Juanma Barranquero" <lekktu@gmail.com> 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.
next prev parent reply other threads:[~2008-12-08 4:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-07 0:34 Tracing what is loading Harry Putnam
2008-12-07 9:58 ` Juanma Barranquero
2008-12-07 11:22 ` speedbar question Maindoor
2008-12-07 15:21 ` Drew Adams
2008-12-07 15:34 ` Maindoor
2008-12-07 17:10 ` Drew Adams
2008-12-08 5:42 ` Maindoor
2008-12-08 7:06 ` Speedbar is messed up Maindoor
2008-12-08 7:11 ` Maindoor
2008-12-08 5:46 ` speedbar question Maindoor
2008-12-07 23:09 ` Tracing what is loading Harry Putnam
2008-12-08 0:41 ` Juanma Barranquero
2008-12-08 4:46 ` Harry Putnam [this message]
[not found] <mailman.2095.1228610078.26697.help-gnu-emacs@gnu.org>
2008-12-07 10:01 ` Dmitry Dzhus
2008-12-07 13:10 ` Michael Heerdegen
2008-12-08 4:54 ` Harry Putnam
[not found] ` <mailman.2193.1228712089.26697.help-gnu-emacs@gnu.org>
2008-12-08 18:21 ` Michael Heerdegen
2008-12-08 20:09 ` Harry Putnam
2008-12-09 6:30 ` Harry Putnam
2008-12-10 2:56 ` Kevin Rodgers
2008-12-10 8:47 ` Harry Putnam
[not found] ` <mailman.2437.1228898847.26697.help-gnu-emacs@gnu.org>
2008-12-10 19:14 ` Michael Heerdegen
2008-12-11 1:46 ` Harry Putnam
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87myf7e0kj.fsf@newsguy.com \
--to=reader@newsguy.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.