From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Dzhus Newsgroups: gmane.emacs.help Subject: Re: Tracing what is loading Date: Sun, 07 Dec 2008 13:01:41 +0300 Organization: albasani.net Message-ID: <87ej0kz4l6.fsf@sphinx.net.ru> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1228646504 2389 80.91.229.12 (7 Dec 2008 10:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 10:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 11:42:48 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 1L9H67-0001qE-JA for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 11:42:47 +0100 Original-Received: from localhost ([127.0.0.1]:43331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9H4w-0004wZ-Ls for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 05:41:34 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: news.albasani.net uCo4eWQQdqiYO9GmSHi0ePtMoRj3V/hHkL6dhonf4MVdH05EU9XCXaciOe5lVaFuRMZnhofDF6D7sTYC9YTBn3/PAmYLj8BBYP5NDu+7D26IDWWjaS189H1eo5Ymjn6c Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Sun, 7 Dec 2008 10:06:25 +0000 (UTC) X-User-ID: VZcO7qazFsakpEwyWGgYlKINYOD/dzpQiLlg3RzGgTk= Cancel-Lock: sha1:Gi8EOZsPZi6J6j0XlNtJNQRGn2o= sha1:X7BpbqYlbOMXJQSPtp9RUqE3HtQ= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: yuhUSz3FSAPQi0p+K5zOLx0ne4QdhL2fuCxdqu+lGBk= Original-Xref: news.stanford.edu gnu.emacs.help:165084 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:60411 Archived-At: Harry Putnam wrote: > I hope I've used good judgement here. I'm running 23 but the question > is so basic I thought better to keep the line noise off the devel list > and ask here. > > How can I ensure that some specific code of my choosing is loaded at > the earliest possible point when emacs starts. > > What I want to do is load something like this: > > ;;[Tip from Kai G] make loaded files give a message > (defadvice load (before debug-log activate) > (message "Now loading: %s" (locate-library (ad-get-arg 0)))) > > That will tell exactly what is loading and in what order. > > Maybe there is a better or hopefully simpler way like possibly > compiling something directly into the binary when it is compiled. > > > See `emacs-startup-hook` and other (info "(elisp) Standard Hooks") -- Happy Hacking. http://sphinx.net.ru む