tuned repeat_undo;
authorwenzelm
Fri, 22 Oct 1999 20:25:19 +0200
changeset 7922 b284079cd902
parent 7921 56a84b4d04b1
child 7923 895d31b54da5
tuned repeat_undo;
src/Pure/Interface/proof_general.ML
--- a/src/Pure/Interface/proof_general.ML	Fri Oct 22 20:25:00 1999 +0200
+++ b/src/Pure/Interface/proof_general.ML	Fri Oct 22 20:25:19 1999 +0200
@@ -175,8 +175,11 @@
 fun kill_goal () =
   (Goals.reset_goals (); writeln "Proof General, please clear the goals buffer.");
 
+fun no_print_goals f = setmp print_current_goals_fn (fn _ => fn _ => fn _ => ()) f;
+
 fun repeat_undo 0 = ()
-  | repeat_undo n = (undo(); repeat_undo (n - 1));
+  | repeat_undo 1 = undo ()
+  | repeat_undo n = (no_print_goals undo (); repeat_undo (n - 1));
 
 fun isa_restart () =
  (ml_prompts ("> " ^ oct_char "372") ("- " ^ oct_char "373");