From: Perry Smith <pedzsan@gmail.com>
To: "help-gnu-emacs@gnu.org Help" <help-gnu-emacs@gnu.org>
Subject: Re: "tracing" autoloads
Date: Mon, 2 Dec 2013 07:53:56 -0600 [thread overview]
Message-ID: <93F972B5-B5F2-4EA1-B5CD-5BA44CB34EF4@gmail.com> (raw)
In-Reply-To: <0F25A5E5-1FF3-484A-A90B-33A79512B519@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
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
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
next prev parent reply other threads:[~2013-12-02 13:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-30 14:52 "tracing" autoloads Perry Smith
2013-12-02 13:53 ` Perry Smith [this message]
2013-12-02 15:18 ` 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=93F972B5-B5F2-4EA1-B5CD-5BA44CB34EF4@gmail.com \
--to=pedzsan@gmail.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.
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).