It was mostly copy/pasted from SLIME and it one of the worst parts of the codebase. Some points for improvements:
- better function docs
- better function names
- better messages
- better commands (e.g.
inspect-last-sexp, inspect-defun, inspect-last-result)
- general facelift of the code