inferior-lisp-mode

inferior-lisp-mode is an interactive compiled Lisp function in `inf-lisp.el'.


(inferior-lisp-mode)

Parent mode: `comint-mode'.

Major mode for interacting with an inferior Lisp process.
Runs a Lisp interpreter as a subprocess of Emacs, with Lisp I/O through an
Emacs buffer. Variable `inferior-lisp-program' controls which Lisp interpreter
is run. Variables `inferior-lisp-prompt', `inferior-lisp-filter-regexp' and
`inferior-lisp-load-command' can customize this mode for different Lisp
interpreters.

For information on running multiple processes in multiple buffers, see
documentation for variable `inferior-lisp-buffer'.

key binding
--- -------

C-c Prefix Command
C-d comint-delchar-or-maybe-eof
RET comint-send-input
C-x Prefix Command
ESC Prefix Command
DEL backward-delete-char-untabify
<C-down> comint-next-input
<C-up> comint-previous-input
<delete> delete-forward-char
<kp-delete> delete-forward-char
<mouse-2> comint-insert-input

C-x C-e lisp-eval-last-sexp

C-c C-a lisp-show-arglist
C-c C-c comint-interrupt-subjob
C-c C-d lisp-describe-sym
C-c C-e comint-show-maximum-output
C-c C-f lisp-show-function-documentation
C-c C-k lisp-compile-file
C-c C-l lisp-load-file
C-c RET comint-copy-old-input
C-c C-n comint-next-prompt
C-c C-o comint-delete-output
C-c C-p comint-previous-prompt
C-c C-r comint-show-output
C-c C-s comint-write-output
C-c C-u comint-kill-input
C-c C-v lisp-show-variable-documentation
C-c C-w backward-kill-word
C-c C-x comint-get-next-from-history
C-c C-z comint-stop-subjob
C-c ESC Prefix Command
C-c C-\ comint-quit-subjob
C-c SPC comint-accumulate
C-c . comint-insert-previous-argument

C-M-l comint-show-output
M-n comint-next-input
M-p comint-previous-input
M-r comint-history-isearch-backward-regexp

C-M-q indent-sexp

C-M-q prog-indent-sexp
(that binding is currently shadowed by another mode)

C-c M-r comint-previous-matching-input-from-input
C-c M-s comint-next-matching-input-from-input



Customization: Entry to this mode runs the hooks on `comint-mode-hook' and
`inferior-lisp-mode-hook' (in that order).

You can send text to the inferior Lisp process from other buffers containing
Lisp source.
`switch-to-lisp' switches the current buffer to the Lisp process buffer.
`lisp-eval-defun' sends the current defun to the Lisp process.
`lisp-compile-defun' compiles the current defun.
`lisp-eval-region' sends the current region to the Lisp process.
`lisp-compile-region' compiles the current region.

Prefixing the lisp-eval/compile-defun/region commands with
a C-u causes a switch to the Lisp process buffer after sending
the text.

Commands:
RET after the end of the process' output sends the text from the
end of process to point.
RET before the end of the process' output copies the sexp ending at point
to the end of the process' output, and sends it.
C-c RET copies the sexp ending at point to the end of the process' output,
allowing you to edit it before sending it.
If `comint-use-prompt-regexp' is nil (the default), <mouse-2> on old input
copies the entire old input to the end of the process' output, allowing
you to edit it before sending it. When not used on old input, or if
`comint-use-prompt-regexp' is non-nil, <mouse-2> behaves according to
its global binding.
DEL converts tabs to spaces as it moves back.
M-x lisp-indent-line indents for Lisp; with argument, shifts rest
of expression rigidly with the current line.
C-M-q does M-x lisp-indent-line on each line starting within following expression.
Paragraphs are separated only by blank lines. Semicolons start comments.
If you accidentally suspend your process, use M-x comint-continue-subjob
to continue it.