X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdescribe.lisp;h=584e709c58adb14827303f818c28344aed6292da;hb=5bf4a6a677c80a71dfa31b5c9c374f986594392f;hp=7ea642d19f48f46786ef2cd0ea15c5f5ecfd338d;hpb=06ab5194e064ef8855d6952d02f9cae55e8e75e4;p=sbcl.git diff --git a/src/code/describe.lisp b/src/code/describe.lisp index 7ea642d..584e709 100644 --- a/src/code/describe.lisp +++ b/src/code/describe.lisp @@ -13,14 +13,14 @@ (in-package "SB-IMPL") ;(SB-IMPL, not SB!IMPL, since we're built in warm load.) (declaim (ftype (function (t stream)) describe-object)) -(defgeneric describe-object ((x t) stream)) +(defgeneric describe-object (x stream)) (defun describe (x &optional (stream-designator *standard-output*)) #+sb-doc "Print a description of the object X." (let ((stream (out-synonym-of stream-designator))) + (fresh-line stream) (pprint-logical-block (stream nil) - (pprint-newline :mandatory stream) (describe-object x stream) (pprint-newline :mandatory stream))) (values)) @@ -185,7 +185,7 @@ (:function (if name (format s "Function: ~S" x) (format s "~S is a function." x)))) - (format s "~@:_Its associated name (as in ~S) is ~S." + (format s "~@:_~@" 'function-lambda-expression (%fun-name x)) (case (widetag-of x) @@ -209,7 +209,7 @@ (defmethod describe-object ((x function) s) (%describe-fun x s :function)) -(defgeneric describe-symbol-fdefinition (function stream &key (name nil) )) +(defgeneric describe-symbol-fdefinition (function stream &key name)) (defmethod describe-symbol-fdefinition ((fun function) stream &key name) (%describe-fun fun stream :function name))