src/Pure/proof_general.ML
changeset 13538 359c085c4def
parent 13526 9269275e5da6
child 13545 fcdbd6cf5f9f
--- a/src/Pure/proof_general.ML	Tue Aug 27 15:40:33 2002 +0200
+++ b/src/Pure/proof_general.ML	Tue Aug 27 15:40:58 2002 +0200
@@ -31,6 +31,7 @@
 
 val proof_generalN = "ProofGeneral";
 val xsymbolsN = "xsymbols";
+val thm_depsN = "thm_deps";
 
 val pgmlN = "PGML";
 fun pgml () = pgmlN mem_string ! print_mode;
@@ -160,21 +161,23 @@
 end;
 
 
-(* result dependency output *)
+(* theorem dependency output *)
 
 local
 
 fun tell_thm_deps ths =
-  let
-    val names = map Thm.name_of_thm ths;
-    val refs =
-      foldl (uncurry Proofterm.thms_of_proof) (Symtab.empty, map Thm.proof_of ths)
-      |> Symtab.keys;
-    val deps = refs \\ names \ "";
-  in
-    if null deps then ()
-    else notify ("Proof General, result dependencies are: " ^ space_implode " " (map quote deps))
-  end;
+  conditional (thm_depsN mem_string ! print_mode) (fn () =>
+    let
+      val names = map Thm.name_of_thm ths;
+      val refs =
+        foldl (uncurry Proofterm.thms_of_proof) (Symtab.empty, map Thm.proof_of ths)
+        |> Symtab.keys;
+      val deps = refs \\ names \ "";
+    in
+      if null deps then ()
+      else notify ("Proof General, theorem dependencies are: "
+        ^ space_implode " " (map quote deps))    (* FIXME output names \ "" as well!? *)
+    end);
 
 in