[slime-devel] How to wrap code typed at the REPL?

Helmut Eller heller at common-lisp.net
Thu Jun 29 11:20:50 UTC 2006


* Philippe-André Lorin [2006-06-29 09:36+0200] writes:

> How can I do that?

There's a variable swank::*slime-repl-eval-hooks*.  E.g. the following
does some extra printing.

(setq swank::*slime-repl-eval-hooks*
      (list
       (lambda (form) 
	 (format t "<= ~S~%" form)
	 (let ((v (eval form)))
	   (format t "=> ~S~%" v)
	   v))))

Doesn't seem to work very well if the form returns multiple values,
though.

Helmut.



More information about the slime-devel mailing list