[slime-devel] executing a lisp file from emacs

Nikodemus Siivola nikodemus at random-state.net
Thu Jan 10 14:59:11 UTC 2008


On 12/30/07, Dave Pawson <dave.pawson at gmail.com> wrote:

> New slime user.
> Running sbcl, emacs 21, FC8
>
> I have a lisp file x.lisp
> $sbcl --load dovetailCalc.lisp
> and the program runs fine.
>
> I *think* C-c C-k should execute the program.
> >From the screen information it is simply compiled.
>
> http://common-lisp.net/project/slime/doc/html/Lisp-Evaluation.html#Lisp-Evaluation
> Tried C-M-x  from within the lisp buffer
> and I get an error report
> The function SELFTEST is undefined.
>    [Condition of type UNDEFINED-FUNCTION]
>
> Seems it fails to find the top level definition?
>
> I guess I'm doing something silly, but I can't figure out what.

C-c C-k compiles & loads the file. Whatever you have in that file doesn't
work equally well compiled.

You can in all probability replicate your error by doing

 (load (compile-file "x.lisp"))

in the REPL. (Not a Slime issue.)

Cheers,

 -- Nikodemus



More information about the slime-devel mailing list