equal
deleted
inserted
replaced
84 (ML_Antiquotation.inline @{binding named_theorems} |
84 (ML_Antiquotation.inline @{binding named_theorems} |
85 (Args.context -- Scan.lift (Parse.position Args.name) >> (fn (ctxt, (xname, pos)) => |
85 (Args.context -- Scan.lift (Parse.position Args.name) >> (fn (ctxt, (xname, pos)) => |
86 let |
86 let |
87 val thy = Proof_Context.theory_of ctxt; |
87 val thy = Proof_Context.theory_of ctxt; |
88 val name = Global_Theory.check_fact thy (xname, pos); |
88 val name = Global_Theory.check_fact thy (xname, pos); |
89 val _ = get ctxt name handle ERROR msg => cat_error msg (Position.here pos); |
89 val _ = get ctxt name handle ERROR msg => error (msg ^ Position.here pos); |
90 in ML_Syntax.print_string name end))); |
90 in ML_Syntax.print_string name end))); |
91 |
91 |
92 end; |
92 end; |