begin_theory: Theory.checkpoint for immediate uses ensures that ML evaluation always starts with non-draft @{theory};
authorwenzelm
Thu, 18 Sep 2008 19:39:49 +0200
changeset 28292 cad470c69935
parent 28291 c49b328d689d
child 28293 f15c2e2ffe1b
begin_theory: Theory.checkpoint for immediate uses ensures that ML evaluation always starts with non-draft @{theory};
src/Pure/Thy/thy_info.ML
--- a/src/Pure/Thy/thy_info.ML	Thu Sep 18 19:39:47 2008 +0200
+++ b/src/Pure/Thy/thy_info.ML	Thu Sep 18 19:39:49 2008 +0200
@@ -541,7 +541,8 @@
       |> Present.begin_theory update_time dir uses;
 
     val uses_now = map_filter (fn (x, true) => SOME x | _ => NONE) uses;
-    val theory'' = fold (Context.theory_map o exec_file false) uses_now theory';
+    val theory'' =
+      fold (fn x => Context.theory_map (exec_file false x) o Theory.checkpoint) uses_now theory';
   in theory'' end;
 
 fun end_theory theory =