X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpprint.lisp;fp=src%2Fcode%2Fpprint.lisp;h=f938d30bb370c9677a4996fad7525e165f1677a7;hb=2db542f484283726e64dd4606e7a0f74b9b228ee;hp=d0f7b57e6c1a80f7ab75f60f6dc054a3d600c82f;hpb=58cbb5d0a3cd9fc14537ccc7089504c419f895eb;p=sbcl.git diff --git a/src/code/pprint.lisp b/src/code/pprint.lisp index d0f7b57..f938d30 100644 --- a/src/code/pprint.lisp +++ b/src/code/pprint.lisp @@ -1261,6 +1261,15 @@ line break." stream list)) +(defun pprint-defmethod (stream list &rest noise) + (declare (ignore noise)) + (if (consp (third list)) + (pprint-defun stream list) + (funcall (formatter + "~:<~^~W~^ ~@_~:I~W~^ ~W~^ ~:_~/SB!PRETTY:PPRINT-LAMBDA-LIST/~1I~@{ ~_~W~}~:>") + stream + list))) + (defun pprint-defpackage (stream list &rest noise) (declare (ignore noise)) (funcall (formatter @@ -1518,6 +1527,7 @@ line break." (define-modify-macro pprint-defun) (define-setf-expander pprint-defun) (defmacro pprint-defun) + (defmethod pprint-defmethod) (defpackage pprint-defpackage) (defparameter pprint-block) (defsetf pprint-defun)