init: enter inner statement mode, which prevents local notes from being named internally;
authorwenzelm
Wed, 22 Nov 2006 15:58:59 +0100
changeset 21466 6ffb8f455b84
parent 21465 2d3f477118c2
child 21467 4b0d5e8796cc
init: enter inner statement mode, which prevents local notes from being named internally;
src/Pure/Isar/proof.ML
--- a/src/Pure/Isar/proof.ML	Wed Nov 22 15:58:15 2006 +0100
+++ b/src/Pure/Isar/proof.ML	Wed Nov 22 15:58:59 2006 +0100
@@ -154,7 +154,8 @@
 fun map_node f (Node {context, facts, mode, goal}) =
   make_node (f (context, facts, mode, goal));
 
-fun init ctxt = State (Stack.init (make_node (ctxt, NONE, Forward, NONE)));
+fun init ctxt =
+  State (Stack.init (make_node (ProofContext.set_stmt true ctxt, NONE, Forward, NONE)));
 
 fun current (State st) = Stack.top st |> (fn Node node => node);
 fun map_current f (State st) = State (Stack.map_top (map_node f) st);