X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Finspect.lisp;h=37e04c8311b65b356ca8b92ee491d8b1f9d44e00;hb=1dd5275c69e1260d0a049052b99938fb043355fd;hp=c736f5a87d74ad3781200f37887e3cdad6baf948;hpb=d2f5999ec2882ba9d69656f5568705e5fd200ba1;p=sbcl.git diff --git a/src/code/inspect.lisp b/src/code/inspect.lisp index c736f5a..37e04c8 100644 --- a/src/code/inspect.lisp +++ b/src/code/inspect.lisp @@ -108,17 +108,12 @@ evaluated expressions. (return-from %inspect (reread))))))))) (defun eval-for-inspect (command stream) - (let ((result-list (restart-case (multiple-value-list (eval command)) + (let ((result-list (restart-case + (multiple-value-list (interactive-eval command)) (nil () :report "Return to the inspector." (format stream "~%returning to the inspector~%") (return-from eval-for-inspect nil))))) - ;; FIXME: Much of this interactive-EVAL logic is shared with - ;; the main REPL EVAL and with the debugger EVAL. The code should - ;; be shared explicitly. - (setf /// // // / / result-list) - (setf +++ ++ ++ + + - - command) - (setf *** ** ** * * (car /)) - (format stream "~&~{~S~%~}" /))) + (format stream "~&~{~S~%~}" result-list))) (defun tty-display-inspected-parts (description named-p elements stream) (format stream "~%~A" description)