[slim-vim] ECL Slime, first cut

Larry Clapp larry at theclapp.org
Tue Apr 25 07:29:00 CDT 2006


On Sun, Apr 23, 2006 at 05:12:05PM -0700, Brad Beveridge wrote:
> I've spent a little time in the past week playing with slime written
> in Vim.  I started with the partial slime implementation from Armed
> Bear Common Lisp (http://armedbear.org/abcl.html).
> The code from ABCL is circa 2004, and basically didn't work at all -
> but was a really good place for me to start.
> So I've made the code work to a degree, I can successfully send
> expressions to Swank and get answers back.  The code can also accept
> the *standard-output* stream from Swank.
> I've not run this within Vim yet.  I have Vim running with ViLisp
> piping code into ECL.  In another console I am running Swank in SBCL.

It works fine from within Vim mostly as is; I had to add the swank
package for some of the code in scraps.lisp to work:

(defpackage #:swank
  (:export #:connection-info
           #:listener-eval))

The response to swank:connection-info (which you have in scraps)

  (swank-protocol:encode-message '(:emacs-rex (swank:connection-info) nil t 1) *stream*)
  => "(:return (:ok (:pid 5976 :style nil :lisp-implementation (:type
  ...

doesn't parse correctly in sync-dispatch-return, which expects
something more like this:

  (:return (:ok (:present ((\"4\" . 1)))) 1)

Other than that, so far so good!  Great work!

-- Larry



More information about the slim-vim mailing list