title: How can I run a lisp buffer in slime and see its output in emacs?
body: <p>I have the following code in a buffer (file ~/firsts.lsp):</p>
  
  <pre><code>(defun firsts (l)
    (cond
      ((null l) ())
      (T (cons (car (car l)) (firsts (cdr l))))))
  
  (firsts '((A B) (C D) (E F)))
  </code></pre>
  
  <p>I would like to "run" this script and see the following output (or a reasonable variant thereof):</p>
  
  <pre><code>(A C E)
  </code></pre>
  
  <p>My buffer shows this mode:</p>
  
  <pre><code>(Lisp [COMMON-LISP-USER cmucl] adoc)
  </code></pre>
  
  <p>In trying to run it, I tried C-c C-k, which created a buffer <em>slime-compilation</em> that showed the file was "compiled" without errors, but I do not see a way to get the compiled code to execute or run the entire script through the interpreter.</p>
  
  <p>Slime is installed and running (it's what coordinates the compilation). I know that I can run the forms through the repl, in a form by form manner, but I would like to run the entire script interactively.</p>
  
  <p>Software Environment:
  Mac OS X 10.12.3
  GNU Emacs 25.1.1
  Slime ChangeLog dates 2016-04-19
  CMU Common Lisp 21b (21B Unicode) but same result with SBCL 1.3.14</p>