Next: , Up: Run an External Lisp or Scheme Session   [Index]


F.3.1 Inferior Lisp Session

M-x run-lisp

(run-lisp CMD)’ Alias of ‘inferior-lisp’.

To begin an external Lisp session, type ‘M-x run-lisp’. This runs the program named ‘lisp’, and sets it up so that both input and output go through an Emacs buffer named ‘*inferior-lisp*’. This command also switches back to an existing inferior lisp job. To change the name of the Lisp program run by ‘M-x run-lisp’, change the variable ‘inferior-lisp-program’.

inferior-lisp

(inferior-lisp CMD)

Run an inferior Lisp process, input and output via buffer ‘*inferior-lisp*’.

If there is a process already running in ‘*inferior-lisp*’, just switch to that buffer.

With argument, allows you to edit the command line (default is value of ‘inferior-lisp-program’).

inferior-lisp-mode

The major mode for the lisp buffer is Inferior Lisp mode, which combines the characteristics of Lisp mode and Shell mode.

To send input to the Lisp session, go to the end of the lisp buffer and type the input, followed by <RET>. Terminal output from the Lisp session is automatically inserted in the buffer.

inferior-lisp-program

Variable holding the namne of the lisp program to run with ‘run-lisp’.

lisp-mode

When you edit a Lisp program in Lisp mode, you can type ‘C-M-x’ (‘lisp-eval-defun’) to send an expression from the Lisp mode buffer to a Lisp session that you had started with ‘M-x run-lisp’. The expression sent is the top-level Lisp expression at or following point. The resulting value goes as usual into the ‘*inferior-lisp*’ buffer.