From 6adca2ae244a6b7633fcbf347a76520fca18f94b Mon Sep 17 00:00:00 2001 From: vindarel Date: Fri, 19 Apr 2024 13:17:02 +0200 Subject: [PATCH] CL: more on M-x slime vs start-lisp-repl --- content/en/usage/common_lisp.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/content/en/usage/common_lisp.md b/content/en/usage/common_lisp.md index cd196fa..208c6fc 100644 --- a/content/en/usage/common_lisp.md +++ b/content/en/usage/common_lisp.md @@ -15,7 +15,7 @@ Use TAB-completion, compile a function with `C-c C-c` and start a REPL with `M-x ## REPL -Start a Lisp REPL with `M-x start-lisp-repl`. +Start a Lisp REPL with `M-x slime`. To switch to the REPL from a Lisp buffer, even if you didn't start it before, use `C-c C-z`. You can use quick commands inside the REPL. They start with a `,` (comma). For example: @@ -34,11 +34,22 @@ Search in the prompt history with `M-r` (`listener-isearch-history`). The ,ls command in a REPL prints a files and directories listing we can click on. +### Start a REPL with Lem packages available + +There is a second way to start a Lisp REPL: `M-x start-lisp-repl`. + +This gives you a REPL, with the benefit that all Lem systems and packages are loaded and available. You should use this to explore Lem and work on it. + + ### Start a REPL with another Lisp core -Use `C-u M-x slime`. This way, you can choose another implementation or an image of your own. +Use a prefix argument, as in `C-u M-x slime`. This prompts you for a Lisp command, with a pre-defined list of options such as `sbcl`, `ros run`, `ros -L ccl-bin`…). + +This way, you can choose another implementation, you can choose an +image of your own (with `--core`), and you can set other command line +arguments. For example, to extend the dynamic space size for SBCL: -This is equivalent of using the `--core` command-line argument. + C-u M-x slime sbcl --dynamic-space-size 4GiB ### Configuration