after_qed: refrain from Position.setmp_thread_data, which causes duplication of results with several independent proof attempts;
authorwenzelm
Mon, 04 Jan 2010 15:35:53 +0100
changeset 34239 e18b0f7b9902
parent 34238 b28be884edda
child 34240 3274571e45c1
after_qed: refrain from Position.setmp_thread_data, which causes duplication of results with several independent proof attempts;
src/Pure/Isar/proof.ML
--- a/src/Pure/Isar/proof.ML	Mon Jan 04 11:55:23 2010 +0100
+++ b/src/Pure/Isar/proof.ML	Mon Jan 04 15:35:53 2010 +0100
@@ -862,14 +862,10 @@
     val results =
       tl (conclude_goal goal_ctxt goal stmt)
       |> burrow (ProofContext.export goal_ctxt outer_ctxt);
-
-    val (after_local, after_global) = after_qed;
-    fun after_local' x y = Position.setmp_thread_data pos (fn () => after_local x y) ();
-    fun after_global' x y = Position.setmp_thread_data pos (fn () => after_global x y) ();
   in
     outer_state
     |> map_context (after_ctxt props)
-    |> pair ((after_local', after_global'), results)
+    |> pair (after_qed, results)
   end;
 
 end;