Next: , Previous: Finding definitions, Up: Commands



3.2.3 Lisp Evaluation

These commands each evaluate a Lisp expression in a different way. By default they show their results in a message, but a prefix argument causes the results to be printed in the REPL instead.

C-M-x
slime-eval-defun
Evaluate top-level form.
C-x C-e
slime-eval-last-expression
Evaluate the expression before point.
C-c C-p
slime-pprint-eval-last-expression
Evaluate the expression before point and pretty-print the result.
C-c C-r
slime-eval-region
Evaluate the region.
C-c :
slime-interactive-eval
Evaluate an expression read from the minibuffer.


M-x slime-scratch
Create a *slime-scratch* buffer. In this buffer you can enter Lisp expressions and evaluate them with C-j, like in Emacs's *scratch* buffer.

If `C-M-x' or `C-x C-e' is given a numeric argument, it inserts the value into the current buffer at point, rather than displaying it in the echo area.