eliminated isar_action;
authorwenzelm
Wed, 20 Oct 1999 15:53:22 +0200
changeset 7893 fef0738b62d7
parent 7892 a5ba4f52991a
child 7894 2ccfea468b24
eliminated isar_action;
src/Pure/Interface/proof_general.ML
--- a/src/Pure/Interface/proof_general.ML	Wed Oct 20 15:50:51 1999 +0200
+++ b/src/Pure/Interface/proof_general.ML	Wed Oct 20 15:53:22 1999 +0200
@@ -143,7 +143,7 @@
 
 fun tell_pg msg name = writeln ("Proof General, " ^ msg ^ " " ^ quote name);
 
-fun isa_action action name =
+fun trace_action action name =
   let
     val update = (action = ThyInfo.Update);
     fun loaded ((path, _), really) =
@@ -155,12 +155,8 @@
     else seq (tell_pg "you can unlock the file") files
   end;
 
-fun isar_action action name =
-  if action = ThyInfo.Update then tell_pg "this theory is loaded:" name
-  else tell_pg "you can unlock the theory" name;
-
 in
-  fun setup_thy_loader isar = ThyInfo.add_hook (if isar then isar_action else isa_action);
+  fun setup_thy_loader () = ThyInfo.add_hook trace_action;
 end;
 
 
@@ -190,7 +186,7 @@
 fun init isar =
  (setup_messages ();
   setup_state isar;
-  setup_thy_loader isar;
+  setup_thy_loader ();
   print_mode := [proof_generalN];
   set quick_and_dirty;
   if isar then Isar.sync_main () else isa_restart ());