From b3b35e2288a65fa18ed0a371675565c380be058f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 19 Mar 2021 10:43:25 -0700 Subject: make unpreprocessed propspecs printable They can appear in what we need to send to the remote Lisp, in :ORIG-ARGS entries for DEFPROPSPEC properties. Signed-off-by: Sean Whitton --- src/propspec.lisp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/propspec.lisp') diff --git a/src/propspec.lisp b/src/propspec.lisp index 5df0410..e59f1ce 100644 --- a/src/propspec.lisp +++ b/src/propspec.lisp @@ -207,6 +207,14 @@ systems." :systems systems :propspec propspec) (make-instance 'unpreprocessed-propspec :propspec propspec))) +(defmethod print-object ((propspec unpreprocessed-propspec) stream) + (format stream "#.~S" `(make-instance + 'unpreprocessed-propspec + :systems ',(slot-value propspec 'systems) + :propspec + ',(slot-value propspec 'propspec-expression))) + propspec) + (defmethod print-object ((propspec preprocessed-propspec) stream) (format stream "#.~S" `(make-instance 'preprocessed-propspec -- cgit v1.2.3