# HG changeset patch # User wenzelm # Date 1221682014 -7200 # Node ID f2995a28e0e49c8c4e09f98b6fde589b3a3d6de2 # Parent fbc7078112032c511386ba5b4b661855a0b2fe5a ML_prf: inherit env for all contexts within the proof; diff -r fbc707811203 -r f2995a28e0e4 src/Pure/Isar/isar_syn.ML --- a/src/Pure/Isar/isar_syn.ML Wed Sep 17 22:06:52 2008 +0200 +++ b/src/Pure/Isar/isar_syn.ML Wed Sep 17 22:06:54 2008 +0200 @@ -306,7 +306,8 @@ OuterSyntax.command "ML_prf" "eval ML text within proof" (K.tag_proof K.prf_decl) (P.ML_source >> (fn (txt, pos) => Toplevel.proof (Proof.map_context (Context.proof_map - (ML_Context.exec (fn () => ML_Context.eval true pos txt)))))); + (ML_Context.exec (fn () => ML_Context.eval true pos txt))) #> + (fn prf => Proof.map_contexts (ML_Context.inherit_env (Proof.context_of prf)) prf)))); val _ = OuterSyntax.command "ML_val" "eval ML text (diagnostic)" (K.tag_ml K.diag)