Lisp programming and Emacs



It still doesn't work... I can run sbcl with M-x slime, but it complains
that 'package "ASDF" not found', although cl-asdf is installed. After that,
if I try to compile a function with C-c C-c, I get an annoying message
"Polling /tmp/slime.xxxx", which stays there forever. I can load a lisp file
from repl though.

I have to say it is the first time I see an Emacs mode not working as
expected, or at least not working out-of-the-box. Furthermore, the idea of
using a client-server model implemented in slime/swank seems strange to me.
All that just to compile lisp programs from within Emacs?

2011/10/14 Raymond Toy <toy.raymond at gmail.com>

>
>
> On Fri, Oct 14, 2011 at 2:48 AM, Panagiotis Papasotiriou <
> p.j.papasot at gmail.com> wrote:
>
>> for Maxima sessions, gnuplot sessions, and as an IDE for Fortran 90 or
>> C/C++ programming. As far I can tell, "Slime" is the Emacs package for Lisp
>> programming. I installed Slime and SBCL (directly from Debian GNU/Linux
>> repositories) but somehow those two are not connected, so I cannot, for
>> example, mark a region of a Lisp program and execute it in SBCL with
>> keystrokes like C-c C-b, as I do with Maxima programs. In fact, the Lisp
>> program edited in Emacs seems completely on its own, not connected with SBCL
>> in any way, although Slime is supposed to support SBCL. I tried several
>> solutions which I found on the Internet, suggesting adding things in .emacs
>> configuration file. However, none of those suggestions worked. So my
>> question is, which is the "best" Lisp implementation I should use for
>> Maxima-oriented Lisp programming, and how can I use it in Emacs?
>>
>
> Any lisp supported by slime will work fine.  I use cmucl.  Many use ccl,
> ecl, or sbcl.
>
> Slime is pretty well documented, so you should read the documents.
>
> FWIW, this is what I use and it works fine me.  In my xemacs init.el file,
> I have:
>
> ;; Load slime
> (setq inferior-lisp-program "cmulisp")
> (setq slime-lisp-implementations
>       '((cmulisp ("cmulisp") :coding-system utf-8-unix)
>     (cmulisp-8bit ("cmulisp-8bit"))))
>
> (require 'slime)
> (slime-setup '(slime-fancy slime-repl))
>
> where cmulisp is my shell script that runs cmucl.  Change cmulisp
> (everywhere above) to sbcl.  You can delete the cmulisp-8bit part.
>
> Then M-x slime will start slime and lisp for you in *slime-repl <lisp>".
> In a lisp file, you can C-c C-c in a function and it will be compiled and
> loaded into lisp.  This doesn't work so well with maxima.  There was a way
> to hook up maxima to support compiling lisp code like this with slime, but I
> don't remember how to do that anymore; I just load the lisp file from the
> maxima repl.
>
> Ray
>
>