diff options
author | Makarius Wenzel <makarius@sketis.net> | 2007-05-08 12:40:14 +0000 |
---|---|---|
committer | Makarius Wenzel <makarius@sketis.net> | 2007-05-08 12:40:14 +0000 |
commit | 9c6ee4eae961e39a76fa02d395147c7b3eefd497 (patch) | |
tree | 35ffabb7d2c1a7dd1b9004a788b69d21daad210c /isar | |
parent | 47095eb5059b06a989c2d2676eed30e272443b87 (diff) |
tuned cannot-undo;
Diffstat (limited to 'isar')
-rw-r--r-- | isar/isar.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/isar/isar.el b/isar/isar.el index d37d5815..20365bb7 100644 --- a/isar/isar.el +++ b/isar/isar.el @@ -452,13 +452,10 @@ proof-shell-retract-files-regexp." ((and (proof-string-match isar-end-regexp str) (isar-command-nested span)) (setq ans isar-undo)) - ;; not undoable: fail and exit - ;; [da: this is an odd case: it issues cannot_undo command to Isar, - ;; which immediately generates an error, I think it's a bit confusing - ;; for the user] + ;; non-nested end: undoable in Isabelle2007 ((and (proof-string-match isar-undo-fail-regexp str)) + (setq ans (isar-cannot-undo (match-string 1 str))) (setq answers nil) - (setq ans (isar-cannot-undo str)) (setq span nil)) ;; theory: remove and exit ((proof-string-match isar-undo-remove-regexp str) |