--- a/src/Pure/display.ML Thu Sep 11 12:24:28 1997 +0200
+++ b/src/Pure/display.ML Thu Sep 11 16:16:03 1997 +0200
@@ -17,7 +17,6 @@
val print_cterm : cterm -> unit
val print_ctyp : ctyp -> unit
val print_goals : int -> thm -> unit
- val print_goals_ref : (int -> thm -> unit) ref
val print_syntax : theory -> unit
val print_theory : theory -> unit
val print_thm : thm -> unit
@@ -209,9 +208,6 @@
end;
-(*"hook" for user interfaces: allows print_goals to be replaced*) (* FIXME remove!? *)
-val print_goals_ref = ref print_goals;
-
end;
open Display;
--- a/src/Pure/goals.ML Thu Sep 11 12:24:28 1997 +0200
+++ b/src/Pure/goals.ML Thu Sep 11 16:16:03 1997 +0200
@@ -120,10 +120,10 @@
(*Default action is to print an error message; could be suppressed for
special applications.*)
-fun result_error_default state msg : thm =
- (writeln ("Bad final proof state:");
- !print_goals_ref (!goals_limit) state;
- writeln msg; raise ERROR);
+fun result_error_default state msg : thm =
+ (writeln "Bad final proof state:";
+ print_goals (!goals_limit) state;
+ writeln msg; raise ERROR);
val result_error_fn = ref result_error_default;
@@ -235,7 +235,7 @@
(*Print goals of current level*)
fun print_current_goals_default n max th =
- (writeln ("Level " ^ string_of_int n); !print_goals_ref max th);
+ (writeln ("Level " ^ string_of_int n); print_goals max th);
val print_current_goals_fn = ref print_current_goals_default;
--- a/src/Pure/tctical.ML Thu Sep 11 12:24:28 1997 +0200
+++ b/src/Pure/tctical.ML Thu Sep 11 16:16:03 1997 +0200
@@ -192,7 +192,7 @@
(*Print the current proof state and pass it on.*)
val print_tac =
(fn st =>
- (!print_goals_ref (!goals_limit) st; Sequence.single st));
+ (print_goals (!goals_limit) st; Sequence.single st));
(*Pause until a line is typed -- if non-empty then fail. *)
fun pause_tac st =
@@ -229,7 +229,7 @@
(*Extract from a tactic, a thm->thm seq function that handles tracing*)
fun tracify flag tac st =
if !flag andalso not (!suppress_tracing)
- then (!print_goals_ref (!goals_limit) st;
+ then (print_goals (!goals_limit) st;
prs"** Press RETURN to continue: ";
exec_trace_command flag (tac,st))
else tac st;