unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Get report on which files are loading
@ 2003-05-18  0:41 Harry Putnam
  2003-05-18 15:13 ` Harry Putnam
       [not found] ` <mailman.6356.1053271291.21513.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: Harry Putnam @ 2003-05-18  0:41 UTC (permalink / raw)


Some time back I got a tip from Kai G. about how to tell which files are
being loaded:
I have this loaded from a special file ~/whats_loading.el
;; make loaded files give a message [from Kai]
 (defadvice load (before debug-log activate)
  (message "(Tip from Kai G): Now loading: %s" (ad-get-arg 0)))

It reports on some files but not on others.
For example it doesn't report when site-start.el is loaded even
though the defadvice is loaded first (from the command line)
  emacs -l ~/whats_loading.el

I have this in site-start.el to see when it loads:
 (message "finished loading => /usr/local/share/emacs/site-lisp/site-start.el") (sit-for 1)

I see in  *Messages* buffer, stuff that indicate what is loading like this:

  Loading whats_loading.el (source)...
  Loading advice...done
  Loading whats_loading.el (source)...done
  (Tip from Kai G): Now loading: ~/.emacs-custom
  Loading ~/.emacs-custom...done
  Loading skeleton...done

(NOTE the defadvice doesn't report site-start.el but the `message'
  shows so it has been read)  
  finished loading => /usr/local/share/emacs/site-lisp/site-start.el
  (Tip from Kai G): Now loading: ~/.emacs
  
  [...]

  (Tip from Kai G): Now loading: ~/.abbrev_defs
  Loading ~/.abbrev_defs...done
  (Tip from Kai G): Now loading: default
  (Tip from Kai G): Now loading: ~/.abbrev_defs
  [...]

I'd like to put something in that message line that allows emacs to
know what it has just read and from where.  Something like the `%s'
operator in the defadvice.  So that if for some reason site-start.el
is put somewhere else the accurate path and file name will still be
reported in *Messages* buffer.  Something like:
 (message "finished loading => SOMETHING TO REPORT PATH and FNAME") (sit-for 1)

I couldn't get it right as to where to put the `%s' or if it will even
fit in this line of code.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-19 23:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6352.1053220313.21513.help-gnu-emacs@gnu.org>
2003-05-18  8:33 ` Get report on which files are loading Kai Großjohann
2003-05-18  0:41 Harry Putnam
2003-05-18 15:13 ` Harry Putnam
     [not found] ` <mailman.6356.1053271291.21513.help-gnu-emacs@gnu.org>
2003-05-18 15:45   ` Kai Großjohann
2003-05-18 22:14     ` Harry Putnam
2003-05-18 18:09   ` Stefan Monnier
2003-05-18 22:14     ` Harry Putnam
2003-05-18 23:36       ` Stefan Monnier
2003-05-19  5:13         ` Harry Putnam
2003-05-19 13:51         ` Stefan Monnier
2003-05-19 14:39           ` Harry Putnam
2003-05-19 19:16   ` Kevin Rodgers
2003-05-19 23:32     ` Harry Putnam

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).