aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar
diff options
context:
space:
mode:
authorGravatar Makarius Wenzel <makarius@sketis.net>2006-10-11 20:08:10 +0000
committerGravatar Makarius Wenzel <makarius@sketis.net>2006-10-11 20:08:10 +0000
commit8225f0e1764068baa36288b30ad3a16c85830c79 (patch)
treed1ca7be5b12e2b040701ee8687b6820a24a03136 /isar
parent99527585d02e4470ba70497973e074bb4a4b6b77 (diff)
reintroduced pg-subterm-first-special-char, which makes PG strip goal markup;
isar-find-and-forget: no special treatment of undo-kill, allows "context" command to act as local theory init;
Diffstat (limited to 'isar')
-rw-r--r--isar/isar.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/isar/isar.el b/isar/isar.el
index 3fb5ef9f..df8da592 100644
--- a/isar/isar.el
+++ b/isar/isar.el
@@ -143,6 +143,7 @@ See -k option for Isabelle interface script."
(defun isar-shell-mode-config-set-variables ()
"Configure generic proof shell mode variables for Isabelle/Isar."
(setq
+ pg-subterm-first-special-char ?\350
proof-shell-wakeup-char nil
proof-shell-annotated-prompt-regexp "^\\w*[>#] \372\\|^\\w*[>#] \^AS"
@@ -445,13 +446,15 @@ proof-shell-retract-files-regexp."
;; open goal: skip and exit
((proof-string-match isar-goal-command-regexp str)
(setq span nil))
+ ;; nested end: undo
+ ((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]
- ((and (proof-string-match isar-undo-fail-regexp str)
- (not (and (proof-string-match isar-end-regexp str)
- (isar-command-nested span))))
+ ((and (proof-string-match isar-undo-fail-regexp str))
(setq answers nil)
(setq ans (isar-cannot-undo str))
(setq span nil))
@@ -459,9 +462,6 @@ proof-shell-retract-files-regexp."
((proof-string-match isar-undo-remove-regexp str)
(setq ans (isar-remove (match-string 2 str)))
(setq span nil))
- ;; context switch: kill
- ((proof-string-match isar-undo-kill-regexp str)
- (setq ans isar-kill))
;; else: undo
(t
(setq ans isar-undo)))