> Someone checked in some code in some EasyGUI source file at some point<br>> that does something like:<br>> <br>> (declaim (optimize (safety 3) (debug 3) ...))<br>> <br>> They presumably intended to wrap that in an (EVAL-WHEN (:COMPILE-<br>> TOPLEVEL) ...<br>> <br><br><div>I'm that somebody, and again I apologise.</div><div><br></div><div>However, I suspect that wrapping in eval-when as suggested will still affect files subsequently</div><div>compiled in the same session, at least. Maybe my mental model is wrong, but ...  I think</div><div>eval-when controls the time of evaluation but not the scope of any consequential changes.</div><div>So, if a file with that declaration is compiled, the optimizations are set at compile time, and</div><div>persist afterward. Which if true would mean that unfortunately you always have to explicitly reset the optimization settings to their defaults unless you intend these knock-on effects.</div><div><br></div><div>Arthur</div><div><br></div>