home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / lisp / 2874 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.3 KB

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: packages (novice question)
  5. Date: 13 Nov 1992 17:25:54 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 18
  8. Message-ID: <1e0of2INNfgh@early-bird.think.com>
  9. References: <1992Nov12.224056.6064@aau.dk>
  10. NNTP-Posting-Host: telecaster.think.com
  11. Keywords: init, package, loading
  12.  
  13. In article <1992Nov12.224056.6064@aau.dk> psykseth@aau.dk (Seth Chaiklin) writes:
  14. >Is it possible to write an init file (or use a command-line option)
  15. >that will execute an (in-package 'package) when lisp is started.
  16. >I have read friendly manuals, and experimented, but come up blank.
  17. >(I will not object if the answer comes in a slightly didactic or
  18. >tutorial form. (-: )
  19.  
  20. If your goal is to set the package so that it will be the default when you
  21. enter the read-eval-print loop, this cannot be done portably, and probably
  22. not at all in most CL implementations (the only one I know how to do it in
  23. is Symbolics).  The reason is that LOAD binds *PACKAGE*, so when Lisp is
  24. done loading your init file it will restore the package back to its initial
  25. value.
  26. -- 
  27. Barry Margolin
  28. System Manager, Thinking Machines Corp.
  29.  
  30. barmar@think.com          {uunet,harvard}!think!barmar
  31.