Path: utzoo!attcan!uunet!husc6!mailrus!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: Load order of 'site' files and '~/.emacs' Message-ID: <32227@bbn.COM> Date: 14 Nov 88 17:38:11 GMT References: <812@novavax.UUCP> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 28 In-reply-to: weiner@novavax.UUCP (Bob Weiner) In article <812@novavax.UUCP>, weiner@novavax (Bob Weiner) writes: >... >I can only speak from my use of version 18.49, but the emacs startup >code does not operate this way. Look in >/lisp/startup.el and I believe you will find that >'site-init' or 'site-load' is loaded AFTER your .emacs init file. >... >I changed the source myself, but if this is still the same in version 18.52 >someone should send a message to the wonderful people at the Free Software Well, this isn't true for version 18.52, and I seriously doubt that it was in 18.49. I did read startup.el, and checked the Changelog back to well before 18.49. It does load one file after the user's .emacs, namely emacs/lisp/default. No such file comes with the distribution, so there is no system-wide default loaded after the user's .emacs. However, the terminal-specific inits DO happen after .emacs, and there is a hook (term-setup-hook) where you can hang code that wants to run after the terminal type is set. site-init and site-load are loaded by loadup.el, which should have already been run when you built your dumped emacs (i.e., their results are in the pure lisp code). If your system can't dump, I still believe that startup.el must run after loadup.el, hence after site-*.el. -- /jr jr@bbn.com or bbn!jr