src/Pure/ML/ml_antiquotations.ML
changeset 68482 cb84beb84ca9
parent 67208 16519cd83ed4
child 69349 7cef9e386ffe
--- a/src/Pure/ML/ml_antiquotations.ML	Thu Jun 21 14:29:44 2018 +0200
+++ b/src/Pure/ML/ml_antiquotations.ML	Thu Jun 21 14:49:21 2018 +0200
@@ -46,13 +46,14 @@
 
   ML_Antiquotation.value \<^binding>\<open>theory\<close>
     (Args.context -- Scan.lift (Parse.position Args.embedded) >> (fn (ctxt, (name, pos)) =>
-      (Theory.check ctxt (name, pos);
-       "Context.get_theory (Proof_Context.theory_of ML_context) " ^ ML_Syntax.print_string name))
+      (Theory.check {long = false} ctxt (name, pos);
+       "Context.get_theory {long = false} (Proof_Context.theory_of ML_context) " ^
+        ML_Syntax.print_string name))
     || Scan.succeed "Proof_Context.theory_of ML_context") #>
 
   ML_Antiquotation.value \<^binding>\<open>theory_context\<close>
     (Args.context -- Scan.lift (Parse.position Args.embedded) >> (fn (ctxt, (name, pos)) =>
-      (Theory.check ctxt (name, pos);
+      (Theory.check {long = false} ctxt (name, pos);
        "Proof_Context.get_global (Proof_Context.theory_of ML_context) " ^
         ML_Syntax.print_string name))) #>