aboutsummaryrefslogtreecommitdiffhomepage
path: root/isa/ProofGeneral.ML
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>1998-10-28 18:11:26 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>1998-10-28 18:11:26 +0000
commite7d0144d443a28367b165bb407674d2c26e1fe49 (patch)
tree403855e572e213d64691a8d369459b5b8ccf9240 /isa/ProofGeneral.ML
parent4aa5ea2110b356cbcb36a338f32b9c2fe468663e (diff)
Fixed bug in Isabelle count undos. Now uses undo instead of choplev.
Diffstat (limited to 'isa/ProofGeneral.ML')
-rw-r--r--isa/ProofGeneral.ML14
1 files changed, 10 insertions, 4 deletions
diff --git a/isa/ProofGeneral.ML b/isa/ProofGeneral.ML
index c0e88171..a94d46cd 100644
--- a/isa/ProofGeneral.ML
+++ b/isa/ProofGeneral.ML
@@ -21,6 +21,7 @@ sig
val help : unit -> unit
val show_context : unit -> unit
val retract_file : string -> unit
+ val repeat_undo : int -> unit
end
structure ProofGeneral =
@@ -61,7 +62,10 @@ structure ProofGeneral =
(show_msgs thy; map retract_file (children_loaded thy); ())
else ()
end;
- end;
+
+ fun repeat_undo 0 = ()
+ | repeat_undo n = (undo(); repeat_undo (n-1));
+ end;
fun remove_mlfile_fromdb thy =
let val tinfo = case Symtab.lookup (!loaded_thys, thy) of
@@ -123,12 +127,14 @@ in
error_fn := (fn s => out (prefix_suffix_lines "*** " s "")))
end;
+
+
(* add markup to proof state output *)
-val proof_state_special_prefix="\248";
-val proof_state_special_suffix="\249";
-val goal_start_special="\253";
+val proof_state_special_prefix="\248"; (* \370 octal *)
+val proof_state_special_suffix="\249"; (* \371 *)
+val goal_start_special="\253"; (* \375 *)
current_goals_markers:=(proof_state_special_prefix,
proof_state_special_suffix,