[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "tracing" autoloads
From: |
Perry Smith |
Subject: |
Re: "tracing" autoloads |
Date: |
Mon, 2 Dec 2013 07:53:56 -0600 |
On Nov 30, 2013, at 8:52 AM, Perry Smith <pedzsan@gmail.com> wrote:
> I'm trying to debug / understand el-get and how it does things. Probably
> el-get is fine. I'm just a bit lost.
>
> I have advice before "load" and "require" to put out a message. e.g.
>
> (defadvice load (before load-log activate)
> (message "Loading %s" (ad-get-arg 0)))
>
> But a file that is loaded via autoload does not hit either one. I don't want
> advice for "autoload". I want it for when it triggers. Does anyone have
> suggestions on how to do that?
Looking at the code (thank RMS for open source!) I found force-load-messages
which is very nice.
I added an advice for require so I can tell if it is being loaded or required
(out of curiosity).
pedz
signature.asc
Description: Message signed with OpenPGP using GPGMail
- Re: "tracing" autoloads,
Perry Smith <=