]> gitweb.factorcode.org Git - factor.git/commitdiff
don't pprint gadgets with RECT: syntax
authorJoe Groff <arcata@gmail.com>
Sun, 3 May 2009 23:32:35 +0000 (18:32 -0500)
committerJoe Groff <arcata@gmail.com>
Sun, 3 May 2009 23:32:35 +0000 (18:32 -0500)
basis/prettyprint/backend/backend.factor
basis/ui/gadgets/gadgets.factor

index 1976c84fd1348213b78f781451514851ecd337fb..22dec9d2fcf28a5e2a4407a66835c165ac2cf3d1 100644 (file)
@@ -135,8 +135,8 @@ M: pathname pprint*
     [ text ] [ f <inset pprint* block> ] bi*
     \ } pprint-word block> ;
 
-M: tuple pprint*
-    boa-tuples? get [ call-next-method ] [
+: pprint-tuple ( tuple -- )
+    boa-tuples? get [ pprint-object ] [
         [
             <flow
             \ T{ pprint-word
@@ -149,6 +149,9 @@ M: tuple pprint*
         ] check-recursion
     ] if ;
 
+M: tuple pprint*
+    pprint-tuple ;
+
 : do-length-limit ( seq -- trimmed n/f )
     length-limit get dup [
         over length over [-]
index 32d6c0c8a65cd7d1f9ed5cc082f5a0b452726ab6..f9f397d46f1fc38d2c87639c4bd1d76101254eb4 100644 (file)
@@ -3,7 +3,8 @@
 USING: accessors arrays hashtables kernel models math namespaces
 make sequences quotations math.vectors combinators sorting
 binary-search vectors dlists deques models threads
-concurrency.flags math.order math.rectangles fry locals ;
+concurrency.flags math.order math.rectangles fry locals
+prettyprint.backend prettyprint.custom ;
 IN: ui.gadgets
 
 ! Values for orientation slot
@@ -27,6 +28,9 @@ interior
 boundary
 model ;
 
+! Don't print gadgets with RECT: syntax
+M: gadget pprint* pprint-tuple ;
+
 M: gadget equal? 2drop f ;
 
 M: gadget hashcode* nip [ [ \ gadget counter ] unless* ] change-id id>> ;