Open edrx opened 2 years ago
pretty late but shouldn't you switch to the existing buffer sly-mrepl for sbcl and use (sly-connect) instead?
What is the recommended way to do that? Just the sexp below, with a hardcoded name?
(switch-to-buffer "*sly-mrepl for sbcl*")
Hi João and other developers,
I am trying to add support for Sly to eepitch - a module of eev, that is explained here: http://angg.twu.net/eepitch.html - and I need some help...
I need to write a function called eepitch-sly that will have this behavior: 1) if sly is running, connected, etc, and it has a repl buffer, then just switch to its repl buffer - (sly-mrepl--find-buffer)? - and go to eob, a.k.a. the end of the buffer; 2) if sly is running and connected but its repl buffer has been deleted, then recreate it in the right way, switch to it, and go to eob; 3) is sly is not running then run it with all the defaults - skipping the questions -, wait until its repl buffer exists, is connected, and ready, and when all this has happened, then switch to its repl buffer, and return.
I know little Common Lisp at the moment, so I wrote the prototype below, that always uses SBCL - I can postpone making it more general until I have more experience...
Thanks in advance!