present_excursion: setmp_thread_position during presentation;
authorwenzelm
Sat, 24 May 2008 20:12:16 +0200
changeset 26982 de7738deadfb
parent 26981 0e7ba2749d70
child 26983 e40f28cdd19b
present_excursion: setmp_thread_position during presentation;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Sat May 24 20:05:21 2008 +0200
+++ b/src/Pure/Isar/toplevel.ML	Sat May 24 20:12:16 2008 +0200
@@ -684,7 +684,7 @@
   | excur ((tr, pr) :: trs) (st, res) =
       (case transition (! interact) tr st of
         SOME (st', NONE) =>
-          excur trs (st', pr st st' res handle exn =>
+          excur trs (st', setmp_thread_position tr (fn () => pr st st' res) () handle exn =>
             raise EXCURSION_FAIL (exn, "Presentation failed\n" ^ at_command tr))
       | SOME (st', SOME exn_info) => raise EXCURSION_FAIL exn_info
       | NONE => raise EXCURSION_FAIL (TERMINATE, at_command tr));