diff options
| author | David Aspinall | 1998-10-28 18:11:26 +0000 |
|---|---|---|
| committer | David Aspinall | 1998-10-28 18:11:26 +0000 |
| commit | e7d0144d443a28367b165bb407674d2c26e1fe49 (patch) | |
| tree | 403855e572e213d64691a8d369459b5b8ccf9240 | |
| parent | 4aa5ea2110b356cbcb36a338f32b9c2fe468663e (diff) | |
Fixed bug in Isabelle count undos. Now uses undo instead of choplev.
| -rw-r--r-- | isa/ProofGeneral.ML | 14 | ||||
| -rw-r--r-- | isa/isa.el | 2 |
2 files changed, 11 insertions, 5 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, @@ -363,7 +363,7 @@ isa-proofscript-mode." (setq i (+ 1 i)))) (t nil)))) (setq span (next-span span 'type))) - (concat "choplev " (int-to-string ct) proof-terminal-string)))) + (concat "ProofGeneral.repeat_undo " (int-to-string ct) proof-terminal-string)))) (defun isa-goal-command-p (str) "Decide whether argument is a goal or not" |
