antiquotation "theory": proper output, only check via ThyInfo.theory;
authorwenzelm
Mon, 13 Nov 2006 20:10:02 +0100
changeset 21345 a18e60f597b6
parent 21344 7c9cb219b340
child 21346 c8aa120fa05d
antiquotation "theory": proper output, only check via ThyInfo.theory;
src/Pure/Isar/isar_output.ML
--- a/src/Pure/Isar/isar_output.ML	Mon Nov 13 20:08:52 2006 +0100
+++ b/src/Pure/Isar/isar_output.ML	Mon Nov 13 20:10:02 2006 +0100
@@ -462,6 +462,8 @@
 fun pretty_prf full ctxt thms =
   Pretty.chunks (map (ProofContext.pretty_proof_of ctxt full) thms);
 
+fun pretty_theory name = (ThyInfo.theory name; Pretty.str name);
+
 
 (* Isar output *)
 
@@ -520,7 +522,7 @@
   ("subgoals", output_goals false),
   ("prf", args Attrib.thms (output (pretty_prf false))),
   ("full_prf", args Attrib.thms (output (pretty_prf true))),
-  ("theory", args (Scan.lift Args.name) ((K o K o tap) use_thy)),
+  ("theory", args (Scan.lift Args.name) (output (K pretty_theory))),
   ("ML", args (Scan.lift Args.name) (output_ml ml_val)),
   ("ML_type", args (Scan.lift Args.name) (output_ml ml_type)),
   ("ML_struct", args (Scan.lift Args.name) (output_ml ml_struct))];