3.2.2 Compilation commands
SLIME has fancy commands for compiling functions, files, and
packages. The fancy part is that notes and warnings offered by the
Lisp compiler are intercepted and annotated directly onto the
corresponding expressions in the Lisp source buffer. (Give it a try to
see what this means.)
- C-c C-c
- M-x slime-compile-defun
-
Compile the top-level form at point.
- C-c C-y
- M-x slime-call-defun
-
Insert a call to the function defined around point into the REPL.
- C-c C-k
- M-x slime-compile-and-load-file
-
Compile and load the current buffer's source file.
- C-c M-k
- M-x slime-compile-file
-
Compile (but don't load) the current buffer's source file.
- C-c C-l
- M-x slime-load-file
-
Load a source file and compile if necessary, without loading into a buffer..
- C-c C-z
- M-x slime-switch-to-output-buffer
-
Select the output buffer, preferably in a different window.
- M-x slime-compile-region
-
Compile region at point.
The annotations are indicated as underlining on source forms. The
compiler message associated with an annotation can be read either by
placing the mouse over the text or with the selection commands below.
- M-n
- M-x slime-next-note
-
Move the point to the next compiler note and displays the note.
- M-p
- M-x slime-previous-note
-
Move the point to the previous compiler note and displays the note.
- C-c M-c
- M-x slime-remove-notes
-
Remove all annotations from the buffer.