aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2000-04-07 14:03:52 +0000
committerDavid Aspinall2000-04-07 14:03:52 +0000
commite0f49c585004b33476039f0ab2734dba95155e2f (patch)
tree7afce136c033894d22c1d7055dee668173ece0c2
parentc9131112526984c135c29e0b3dd465642e05d5fd (diff)
Tweak to disable_pr function to allow for it being called twice (why?).
-rw-r--r--isa/isa.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/isa/isa.el b/isa/isa.el
index 18c91948..843950d0 100644
--- a/isa/isa.el
+++ b/isa/isa.el
@@ -194,7 +194,7 @@ and script mode."
;; initial command configures Isabelle by hacking print functions.
;; FIXME: temporary hack for almost enabling/disabling printing.
- proof-shell-init-cmd "val pg_saved_gl = ref (!goals_limit); fun proofgeneral_enable_pr () = goals_limit:= !pg_saved_gl; fun proofgeneral_disable_pr() = (pg_saved_gl := !goals_limit; goals_limit := 0); ProofGeneral.init false;"
+ proof-shell-init-cmd "val pg_saved_gl = ref (!goals_limit); fun proofgeneral_enable_pr () = goals_limit:= !pg_saved_gl; fun proofgeneral_disable_pr() = (pg_saved_gl := (if (!goals_limit)>0 then !goals_limit else !pg_saved_gl); goals_limit := 0); ProofGeneral.init false;"
proof-shell-restart-cmd "ProofGeneral.isa_restart();"
proof-shell-quit-cmd "quit();"