X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Finspect.lisp;h=c736f5a87d74ad3781200f37887e3cdad6baf948;hb=dcb73f3edef1e31078fbe585e2fafbd26743efd7;hp=6d3b0a527e8a4d9315a2004307ecf337f7ea4c58;hpb=0aecc2b20142e08068c3434273500131cb13fe2d;p=sbcl.git diff --git a/src/code/inspect.lisp b/src/code/inspect.lisp index 6d3b0a5..c736f5a 100644 --- a/src/code/inspect.lisp +++ b/src/code/inspect.lisp @@ -198,6 +198,12 @@ evaluated expressions. t (inspected-standard-object-elements object))) +(defmethod inspected-parts ((object sb-mop:funcallable-standard-object)) + (values (format nil "The object is a ~S of type ~S.~%" + 'sb-mop:funcallable-standard-object (type-of object)) + t + (inspected-standard-object-elements object))) + (defmethod inspected-parts ((object condition)) (values (format nil "The object is a CONDITION of type ~S.~%" (type-of object)) @@ -205,19 +211,32 @@ evaluated expressions. (inspected-standard-object-elements object))) (defmethod inspected-parts ((object function)) - (values (format nil "The object is a ~A named ~S.~%" - (if (closurep object) 'closure 'function) - (%fun-name object)) - t - ;; Defined-from stuff used to be here. Someone took - ;; it out. FIXME: We should make it easy to get - ;; to DESCRIBE from the inspector. - (list* - (cons "Lambda-list" (%fun-lambda-list object)) - (cons "Ftype" (%fun-type object)) - (when (closurep object) - (list - (cons "Closed over values" (%closure-values object))))))) + (values (format nil "The object is a ~A named ~S.~%" + (if (closurep object) 'closure 'function) + (nth-value 2 (function-lambda-expression object))) + t + ;; Defined-from stuff used to be here. Someone took + ;; it out. FIXME: We should make it easy to get + ;; to DESCRIBE from the inspector. + (list* + (cons "Lambda-list" (%fun-lambda-list object)) + (cons "Ftype" (%fun-type object)) + (when (closurep object) + (list + (cons "Closed over values" (%closure-values object))))))) + +#+sb-eval +(defmethod inspected-parts ((object sb-eval:interpreted-function)) + (values (format nil "The object is an interpreted function named ~S.~%" + (nth-value 2 (function-lambda-expression object))) + t + ;; Defined-from stuff used to be here. Someone took + ;; it out. FIXME: We should make it easy to get + ;; to DESCRIBE from the inspector. + (list + (cons "Lambda-list" (sb-eval:interpreted-function-lambda-list object)) + (cons "Definition" (function-lambda-expression object)) + (cons "Documentation" (sb-eval:interpreted-function-documentation object))))) (defmethod inspected-parts ((object vector)) (values (format nil