aboutsummaryrefslogtreecommitdiff
path: root/isa
diff options
context:
space:
mode:
authorPierre Courtieu2006-04-26 22:31:52 +0000
committerPierre Courtieu2006-04-26 22:31:52 +0000
commit8ba99b2013e0f62c9117fc79364630ff1fbec585 (patch)
tree1ecc9083150779a527fab764508ac9dab7d78096 /isa
parentfc774de804417a399094f61de1880e75b556c851 (diff)
Changed the type of proof-goal-command-p. It takes now a span, which
allows using a span attribute to detect goal commands. I think I modified all modes accordingly.
Diffstat (limited to 'isa')
-rw-r--r--isa/isa.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/isa/isa.el b/isa/isa.el
index 32ec46fb..22b68642 100644
--- a/isa/isa.el
+++ b/isa/isa.el
@@ -508,8 +508,7 @@ you will be asked to retract the file or process the remainder of it."
(ct 0) str i)
(if (and span (prev-span span 'type)
(not (eq (span-property (prev-span span 'type) 'type) 'comment))
- (isa-goal-command-p
- (span-property (prev-span span 'type) 'cmd)))
+ (isa-goal-command-p (prev-span span 'type)))
(concat "choplev 0" proof-terminal-string)
(while span
(setq str (span-property span 'cmd))
@@ -531,9 +530,10 @@ you will be asked to retract the file or process the remainder of it."
(concat "ProofGeneral.repeat_undo "
(int-to-string ct) proof-terminal-string))))
-(defun isa-goal-command-p (str)
+(defun isa-goal-command-p (span)
"Decide whether argument is a goal or not"
- (proof-string-match isa-goal-command-regexp str)) ; this regexp defined in isa-syntax.el
+ (proof-string-match isa-goal-command-regexp ; this regexp defined in isa-syntax.el
+ (or (span-property span 'cmd) "")))
;; Isabelle has no concept of a Linear context, so forgetting back
;; to the declaration of a particular something makes no real