Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save lisp interaction history for future re-load?

I am using portacle as my Common Lisp environment. When I save my file it saves the entire REPL including the CL-USER>. This results in compilation error when I try to load the file.

I want to save the code and resume from where I left off. I have been writing code at REPL, saving the work in file from the buffer by using key-chords C-x C-s. But this is breaking the continuity of the project. Please suggest a way to do this.

like image 586
Sanket Alurkar Avatar asked Oct 16 '22 23:10

Sanket Alurkar


1 Answers

If you are using REPL in a terminal, you might find dribble useful.

However, if you are running in Emacs, you should almost never type anything at the prompt yourself. You edit a Lisp file in Lisp mode and send your code to the Lisp REPL using C-x C-e or C-M-x &c.

You should also consider using SLIME which also comes with your Portacle.

like image 158
sds Avatar answered Oct 21 '22 06:10

sds