title: Common Lisp: How to get (in-package ...) to work from within Emacs Slime
body: <p>64-bit Windows 7 <br>
  Clozure Common Lisp Version 1.9 WindowsX8632 <br>
  Emacs 24.3.1 <br>
  Slime changelog date 2014-06-17 <br></p>
  
  <p>I have an example .lisp file which starts out as follows:</p>
  
  <pre><code>(ql:quickload 'qt)
  (in-package "QT")
  </code></pre>
  
  <p>The rest of the program shows a dialog box.
  When I run this from the command line, <code>wx86cl -load helloqt.lisp</code> it seems to work fine.
  When I run this from Emacs Slime (<code>C-x C-k</code>) it says there is no package "QT". 
  However if I first evaluate the first line individually (<code>C-x C-e</code>) then I can compile the whole thing and it works, modulo the normal issues of trying to run a QT thread from within Slime on Windows.</p>
  
  <p>How do I make it so I can compile/run the file from emacs without having to manually evaluate the first line first?</p>
  
  <p>Also, why doesn't <code>(in-package ...)</code> change the current package in the Slime session?  I have to change it manually if I want to interact with the package contents.</p>