Newsgroups: comp.lang.lisp.mcl,comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!swrinde!howland.reston.ans.net!torn!watserv3.uwaterloo.ca!undergrad.math.uwaterloo.ca!watdragon.uwaterloo.ca!bcrwhims
From: bcrwhims@setosa.uwaterloo.ca (Carsten Whimster)
Subject: MCL Q: Executing code from files in the Listener?
Message-ID: <Do9JvB.L65@watdragon.uwaterloo.ca>
Sender: news@watdragon.uwaterloo.ca (USENET News System)
Nntp-Posting-Host: setosa.uwaterloo.ca
Organization: University of Waterloo
Date: Thu, 14 Mar 1996 15:18:46 GMT
Lines: 18
Xref: glinda.oz.cs.cmu.edu comp.lang.lisp.mcl:8617 comp.lang.lisp:21095

I have some initialization code for MCL 3.0 that I normally have to run
from the Listener, to put the Listener in the correct package before
saving an image. I would like to automate this procedure which means I
must be able to somehow specify that the code I want to run must run as
if I had typed it into the Listener.

I have tried eval-enqueue, but this only executes it as if in the
toplevel-loop, but loses the results as far as the Listener is
concerned.

Does anyone know of someway to do this? Specifically, I want to put the
Listener into a certain package before saving my image.

A related question:
- who calls the toplevel loop, and can something be inserted before it
  is called?
-- 
Carsten Whimster    bcrwhims@setosa.uwaterloo.ca
