From 46a530c58ea5ae23460d30127e506fb87681c35d Mon Sep 17 00:00:00 2001
From: Slava Pestov <slava@slava-pestovs-macbook-pro.local>
Date: Mon, 29 Sep 2008 04:09:21 -0500
Subject: [PATCH] Add limits to see

---
 basis/prettyprint/prettyprint.factor | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/basis/prettyprint/prettyprint.factor b/basis/prettyprint/prettyprint.factor
index d41a68f0c4..c7be48084f 100755
--- a/basis/prettyprint/prettyprint.factor
+++ b/basis/prettyprint/prettyprint.factor
@@ -230,10 +230,14 @@ M: word declarations.
 : pprint-; ( -- ) \ ; pprint-word ;
 
 : (see) ( spec -- )
-    <colon dup synopsis*
-    <block dup definition pprint-elements block>
-    dup definer nip [ pprint-word ] when* declarations.
-    block> ;
+    [
+        12 nesting-limit set
+        100 length-limit set
+        <colon dup synopsis*
+        <block dup definition pprint-elements block>
+        dup definer nip [ pprint-word ] when* declarations.
+        block>
+    ] with-scope ;
 
 M: object see
     [ (see) ] with-use nl ;