clarified document antiquotation: same check as in ML antiquotation;
authorwenzelm
Thu, 16 Apr 2015 17:26:15 +0200
changeset 60100 2ce2e0358e91
parent 60099 73c260342704
child 60101 f5c4b49c8c9a
clarified document antiquotation: same check as in ML antiquotation;
src/Pure/Thy/thy_output.ML
--- a/src/Pure/Thy/thy_output.ML	Thu Apr 16 17:18:48 2015 +0200
+++ b/src/Pure/Thy/thy_output.ML	Thu Apr 16 17:26:15 2015 +0200
@@ -540,11 +540,7 @@
 
 fun pretty_prf full ctxt = Proof_Syntax.pretty_proof_of ctxt full;
 
-fun pretty_theory ctxt (name, pos) =
-  (case find_first (fn thy => Context.theory_name thy = name)
-      (Theory.nodes_of (Proof_Context.theory_of ctxt)) of
-    NONE => error ("No ancestor theory " ^ quote name ^ Position.here pos)
-  | SOME thy => (Context_Position.report ctxt pos (Theory.get_markup thy); Pretty.str name));
+fun pretty_theory ctxt (name, pos) = (Theory.check ctxt (name, pos); Pretty.str name);
 
 
 (* default output *)