Hubertus wrote:i would like to use the repl but unfortionatly i cant strg+v text into it. so when i have to reset it, i have to write everything again from the beginning.
This is why SLIME exists

With it you can send to REPL pieces of your code (you can send a function definition, or just the last S-expression you typed). You can even load the libraries your code uses in REPL so you could test your code that literary makes use of those libraries. Consider something like this:
- Code: Select all
(in-package :my-code-that-uses-cxml)
(defun print-attributes (node)
(loop with attributes = (dom:attributes node)
for i from 0 upto (dom:length attributes)
do (format t "attribute: ~a~&" (dom:name (dom:item attributes i)))))
(print-attributes (dom:first-child (cxml:parse "<foo a=\"a\" b=\"b\"/>")))
You would test it something like this: you'd go to REPL and type (require :cxml) (because your project relies on that package and you used it in the function you want to test). Then, if you are using SLIME, you'd move the caret inside the (defun print-attribute ...) and tell it to send the defun to REPL. After that you could move the caret to the end of the last line and tell SLIME to send the last S-expression to the REPL, in REPL you would then see the result (or errors if you have them).
Working w/o REPL is like writing in Java but never debugging...