Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save all functions I entered in LispBox/Slime?

Situation: I entered several functions while working with REPL in Emacs. Problem: There is junk like "; Evaluation aborted" when I'm simply saving buffer. What I want: clear descriptions of all the functions I entered in their latest revision.

Can I do that? Thanks.

like image 379
mannicken Avatar asked Jan 02 '09 18:01

mannicken


2 Answers

I don't get it. Are you entering definitions at the REPL and expecting to recover them later? Just save a source file as you would in any other language. Use C-x 2 to split your Emacs window in two. Open a source file in one of them C-x C-f foo.lisp. Use C-c C-k, C-c C-r and friends (see SLIME menu) to compile / evaluate regions of your source code in the REPL.

like image 104
fizzer Avatar answered Nov 15 '22 09:11

fizzer


I've looked for something like this in the past and have been unable to find it. You're best off writing all your definitions in a separate buffer and using SLIME's extensive evaluation/compilation functions (C-c C-k loads an entire file, C-x C-e evaluates the last expression, C-c C-r evaluates a region, etc.), only directly entering into the REPL things you don't want to save.

like image 21
sprintf Avatar answered Nov 15 '22 10:11

sprintf