From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: "tracing" autoloads Date: Mon, 2 Dec 2013 07:53:56 -0600 Message-ID: <93F972B5-B5F2-4EA1-B5CD-5BA44CB34EF4@gmail.com> References: <0F25A5E5-1FF3-484A-A90B-33A79512B519@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_375347CD-3337-40E9-AB42-0D38EB91A640"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Trace: ger.gmane.org 1385992463 10696 80.91.229.3 (2 Dec 2013 13:54:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Dec 2013 13:54:23 +0000 (UTC) To: "help-gnu-emacs@gnu.org Help" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 02 14:54:28 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VnTxE-0004Hi-Cc for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Dec 2013 14:54:28 +0100 Original-Received: from localhost ([::1]:36843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnTxE-0002ub-2x for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Dec 2013 08:54:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnTwt-0002ib-NA for help-gnu-emacs@gnu.org; Mon, 02 Dec 2013 08:54:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnTwl-00079b-9G for help-gnu-emacs@gnu.org; Mon, 02 Dec 2013 08:54:07 -0500 Original-Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:61705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnTwk-00079W-Rm for help-gnu-emacs@gnu.org; Mon, 02 Dec 2013 08:53:59 -0500 Original-Received: by mail-ie0-f169.google.com with SMTP id e14so21314367iej.0 for ; Mon, 02 Dec 2013 05:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=sqmBKyAq1Ht1TpFGChlSraFJe92/MCCRhmNQcRx8pvU=; b=GBU48hdPXCXT1lE4d33DTNLM8+8Xo1RtuHxB3Bx8Ihgp9KljwVu1yGMfkXapDFaGw9 tD3Y8XfT4aJkYWJmi/mbSJQxLMS8Hmf2OsrpCS1JvK+2T683Fy1tD90/Q2WNpo/AHDGL BPcqk/dMhdyawOEUUCCsD6dlv7jYWF6ftUCqyYkbg/SOuGyj/kdcx29dOjNJ4l62FpdG Gam1HTUqh5wPzeTo0m87141/IPUkib0aSr6qOoURElTDREeuCrIZwQUrjqyJooXX/H6p PLJS7iTl2/X9XsCFrL6MBrsNkmPbFzMUxywGZXOkjStVlC7WPlEGaIEmmedvrheudrfN 3y9A== X-Received: by 10.42.48.202 with SMTP id t10mr42134523icf.9.1385992438271; Mon, 02 Dec 2013 05:53:58 -0800 (PST) Original-Received: from magicbook.local ([64.128.19.234]) by mx.google.com with ESMTPSA id da14sm26438898igc.1.2013.12.02.05.53.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Dec 2013 05:53:57 -0800 (PST) In-Reply-To: <0F25A5E5-1FF3-484A-A90B-33A79512B519@gmail.com> X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94782 Archived-At: --Apple-Mail=_375347CD-3337-40E9-AB42-0D38EB91A640 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Nov 30, 2013, at 8:52 AM, Perry Smith 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. >=20 > I have advice before "load" and "require" to put out a message. e.g. >=20 > (defadvice load (before load-log activate) > (message "Loading %s" (ad-get-arg 0))) >=20 > 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 --Apple-Mail=_375347CD-3337-40E9-AB42-0D38EB91A640 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJSnJD0AAoJEIPoMwNgGirldiYH/ja8t7RLjXmdaSi5YPXShNxX RiErJDp/LNNqmccGXEgWP1QUAbXT33ucobUT9M+pgGsttRdd9n9jIEWGl0hsTZWa QeU0aYs+87sdANxwExOMgipvw/It+Xf2C4EsEGxrdRsv3iDmou+t26xrKIWBzbgH oHXmjzjE5GcR5FXrNSJFI5t2v6pecC7BX3+T0ErgCOpNnWb2aES1R/BK6877R1qo qWlqIWGFDvPbcEmk84XzWG4y/Fel7cBLaEM84pF0WOPh1PrJFSe7eRsww7RyszND 2cz5xKmFNYUHvbVc25CiQJj5UYmSR+s1W6MtKtN3w/j/ysoIoYv5L3TfVFAHLnQ= =NxM7 -----END PGP SIGNATURE----- --Apple-Mail=_375347CD-3337-40E9-AB42-0D38EB91A640--