src/Pure/Isar/toplevel.ML
changeset 8999 ad8260dc6e4a
parent 8886 111476895bf2
child 9010 ce78dc5e1a73
--- a/src/Pure/Isar/toplevel.ML	Tue May 30 16:02:56 2000 +0200
+++ b/src/Pure/Isar/toplevel.ML	Tue May 30 16:03:09 2000 +0200
@@ -52,7 +52,6 @@
   val proof': (bool -> ProofHistory.T -> ProofHistory.T) -> transition -> transition
   val proof_to_theory: (ProofHistory.T -> theory) -> transition -> transition
   val quiet: bool ref
-  val trace: bool ref
   val exn_message: exn -> string
   val apply: bool -> transition -> state -> (state * (exn * string) option) option
   val excursion: transition list -> unit
@@ -345,7 +344,6 @@
 (** toplevel transactions **)
 
 val quiet = ref false;
-val trace = ref false;
 
 
 (* print exceptions *)
@@ -389,7 +387,7 @@
       if int orelse not int_only then ()
       else warning (command_msg "Interactive-only " tr);
     val (result, opt_exn) =
-      (if ! trace then (writeln (command_msg "" tr); timeap) else I) (apply_trans int trans) state;
+      (if ! Library.timing then (warning (command_msg "" tr); timeap) else I) (apply_trans int trans) state;
     val _ = if int andalso print andalso not (! quiet) then print_state false result else ();
   in (result, apsome (fn UNDEF => type_error tr state | exn => exn) opt_exn) end;