tuned;
authorwenzelm
Tue, 26 Oct 1999 22:34:01 +0200
changeset 7939 131a2c54036f
parent 7938 e45599caee6c
child 7940 def6db239934
tuned; always ml_prompts;
src/Pure/Interface/proof_general.ML
--- a/src/Pure/Interface/proof_general.ML	Tue Oct 26 22:32:15 1999 +0200
+++ b/src/Pure/Interface/proof_general.ML	Tue Oct 26 22:34:01 1999 +0200
@@ -94,18 +94,16 @@
 
 fun print_current_goals n max th = plain_writeln (Goals.print_current_goals_default n max) th;
 
-fun setup_state isar =
-  (current_goals_markers :=
+fun setup_state () =
+ (current_goals_markers :=
     let
       val begin_state = oct_char "366";
       val end_state= oct_char "367";
       val begin_goal = oct_char "370";
     in (begin_state, end_state, begin_goal) end;
-  if isar then
-   (Toplevel.print_state_fn := plain_writeln Toplevel.print_state_default;
-    Toplevel.prompt_state_fn := (suffix (oct_char "372") o Toplevel.prompt_state_default))
-  else ();
-  Goals.print_current_goals_fn := print_current_goals);  (*isar: avoids verbose responses*)
+  Toplevel.print_state_fn := plain_writeln Toplevel.print_state_default;
+  Toplevel.prompt_state_fn := (suffix (oct_char "372") o Toplevel.prompt_state_default);
+  Goals.print_current_goals_fn := print_current_goals);
 
 
 (* theory loader actions *)
@@ -162,7 +160,7 @@
 
 fun restart isar =
  (ThyInfo.touch_all_thys ();
-  if isar then () else (ml_prompts ("> " ^ oct_char "372") ("- " ^ oct_char "373"); kill_goal ());
+  if isar then tell_clear_goals () else kill_goal ();
   tell_clear_response ();
   writeln (Session.welcome ()));
 
@@ -204,11 +202,12 @@
 
 fun init isar =
  (setup_messages ();
-  setup_state isar;
+  setup_state ();
   setup_thy_loader ();
   print_mode := [proof_generalN];
   set quick_and_dirty;
   if isar then init_outer_syntax () else ();
+  ml_prompts ("> " ^ oct_char "372") ("- " ^ oct_char "373");
   if isar then Isar.sync_main () else isa_restart ());