aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2010-10-11 00:26:42 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2010-10-11 00:26:42 +0000
commitf4abdf67e0996455b8ccbd1baa68bf64691d9c11 (patch)
tree19794f0698e49e7e686ed86206309ec470883c4a /isar
parent7b644eb8ab07d04e2787e079e256ba21fd932958 (diff)
isar-set-undo-commands: prevent opening new script files calling proof-deactivate-scripting
Diffstat (limited to 'isar')
-rw-r--r--isar/isar.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/isar/isar.el b/isar/isar.el
index feea1f4d..b32c0825 100644
--- a/isar/isar.el
+++ b/isar/isar.el
@@ -243,10 +243,11 @@ See -k option for Isabelle interface script."
:type 'boolean
:eval (isar-set-proof-find-theorems-command))
-(defun isar-set-undo-commands ()
- (proof-deactivate-scripting)
- (when proof-script-buffer
- (message "Warning: switching undo mechanism will break undo in this buffer"))
+(defun isar-set-undo-commands (&optional initp)
+ (unless initp
+ (proof-deactivate-scripting)
+ (when proof-script-buffer
+ (message "Warning: switching undo mechanism will break undo in current buffer")))
(setq proof-count-undos-fn 'isar-count-undos)
(when isar-use-linear-undo
(setq proof-kill-goal-command nil)
@@ -264,7 +265,7 @@ See -k option for Isabelle interface script."
(defun isar-configure-from-settings ()
(isar-set-proof-find-theorems-command)
- (isar-set-undo-commands))
+ (isar-set-undo-commands 'init))
;;
;; Theory loader operations