Xref: utzoo comp.emacs:10577 gnu.emacs.help:1802 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!compass!worley From: worley@compass.com (Dale Worley) Newsgroups: comp.emacs,gnu.emacs.help Subject: Re: Loading and Autoloading files Message-ID: <5187@compass.com> Date: 19 Apr 91 14:58:23 GMT References: <26165@hydra.gatech.EDU> Followup-To: comp.emacs Distribution: world Organization: Compass, Inc., Wakefield, MA Lines: 32 In-reply-to: gt1797a@prism.gatech.EDU's message of 12 Apr 91 19:10:47 GMT In article <26165@hydra.gatech.EDU> gt1797a@prism.gatech.EDU (Ryan Mulderig - gt1797a) writes: What I have right now is (for the navigator package) (autoload 'navigator "location" "Navigator" t) (autoload 'multishell "location" "Multishell" t) , etc. where navigator is dependant on multishell. To run navigator I have to call each file up the dependance chain indiviually Meta-X comint Meta-X cmushell Meta-X multishell Meta-X navigator At the top of navigator.el, put in (require 'multishell) During the loading of navigator.el, when this form is executed, multishell.el will be loaded if it hasn't been already. There is one catch -- multishell.el must have in it: (provide 'multishell) Look at the top of cmushell.el to see how it's done. Dale Dale Worley Compass, Inc. worley@compass.com -- [V]irgins were often selected to beta-test volcanos. -- Bob Starkey