Hi, cool series and nice trick to catch a C-c. There's a simpler recipe on the Cookbook -> scripting. With SBCL, you can handle the sb-sys:interactive-interrupt condition, and there's the library with-user-abort (on Quicklisp) to make it portable.
If you run the emacs command M-x signal-process it will ask you for a process name or id which can be gotten from the list-processes command, but the lisp repel is always called inferior-lisp so type that in and then it asks for the signal and you type 2 and the code will quit properly. Too bad this series is on hiatus, this was a fun project.
Hi, cool series and nice trick to catch a C-c. There's a simpler recipe on the Cookbook -> scripting. With SBCL, you can handle the sb-sys:interactive-interrupt condition, and there's the library with-user-abort (on Quicklisp) to make it portable.
If you run the emacs command M-x signal-process it will ask you for a process name or id which can be gotten from the list-processes command, but the lisp repel is always called inferior-lisp so type that in and then it asks for the signal and you type 2 and the code will quit properly. Too bad this series is on hiatus, this was a fun project.
Amazing....