tty loop: do not report status;
authorwenzelm
Sun, 20 Jul 2008 23:06:58 +0200
changeset 27662 34e7236443f3
parent 27661 a5019f9ae068
child 27663 098798321622
tty loop: do not report status;
src/Pure/Isar/isar.ML
--- a/src/Pure/Isar/isar.ML	Sun Jul 20 23:06:55 2008 +0200
+++ b/src/Pure/Isar/isar.ML	Sun Jul 20 23:06:58 2008 +0200
@@ -156,11 +156,12 @@
 
 fun report_status markup id = Toplevel.status (#transition (the_command id)) markup;
 
-fun update_status status id = change_commands (Graph.map_node id (map_status (fn old_status =>
-  let
-    val markup = status_markup status;
-    val _ = if markup <> status_markup old_status then report_status markup id else ();
-  in status end)));
+fun update_status status id = change_commands (Graph.map_node id (map_status (K status)));
+
+fun report_update_status status id =
+  change_commands (Graph.map_node id (map_status (fn old_status =>
+    let val markup = status_markup status
+    in if markup <> status_markup old_status then report_status markup id else (); status end)));
 
 
 (* create and dispose commands *)
@@ -348,10 +349,10 @@
   | SOME state =>
       (case run true (#transition (the_command id)) state of
         NONE => ()
-      | SOME status => update_status status id));
+      | SOME status => report_update_status status id));
       
 fun rerun_commands ids =
-  (List.app (update_status Unprocessed) ids; List.app try_run ids);
+  (List.app (report_update_status Unprocessed) ids; List.app try_run ids);
 
 
 (* modify document *)