help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracing what is loading


From: Michael Heerdegen
Subject: Re: Tracing what is loading
Date: Mon, 08 Dec 2008 19:21:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Please note that there already _is_ a message for every file loaded. But
because the *Messages* buffer only shows the last 50 (or so) messages,
you can't see them because starting up causes quite more messages.

Indeed all you need is `load-history'. Due to the internal structure of
lists, the last item belongs to the first load file and vice versa, so you
must read it bottom up.

I have written a command which only shows the files, in the right order:

(defun list-load-files () (interactive)
  (with-current-buffer
      (get-buffer-create "*Load History*")
    (erase-buffer)
    (insert (format "%s" "Load History\n============\n\n"))
    (mapc
     (lambda (x) (insert (format "%s\n" (car x))))
     (reverse load-history))
    (pop-to-buffer (current-buffer))))

You can eval it with M-:. Call it with M-x list-load-files.

The listing should cover all lisp files ever loaded after startup.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]