aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Courtieu2002-06-11 18:05:55 +0000
committerPierre Courtieu2002-06-11 18:05:55 +0000
commit50dd6fc90665dd805277257b40c93380a535daa2 (patch)
treea751652712579466f8a5fcdd238417bb1db1bbb6
parentb10c5626a56fac656386daab966fb08a44330a9c (diff)
Fixed a bug of the new synchro code (coq-find-and-forget) in
coq.el. Now do not count Tactics and unsaved goal commands for "Back".
-rw-r--r--coq/coq.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 571b8bf6..d00c5254 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -254,9 +254,17 @@
; backable. This negative test bets on the fact that user
; defined commands are probably backable, which is not sure at
; all. Betting on the opposite is also wrong.
- ((not (proof-string-match
- (concat "\\`\\(" coq-not-undoable-not-backable-commands-regexp "\\)") str))
- (setq nbacks (+ nbacks 1)))
+ ((and
+ (not (coq-goal-command-p str)) ;; saved goals are catched before this point
+ (not (proof-string-match ;; now we should match all things that deal with Back
+ (concat "\\`\\(" coq-undoable-commands-regexp "\\)")
+ str))
+ (not (proof-string-match
+ (concat "\\`\\("
+ coq-not-undoable-not-backable-commands-regexp
+ "\\)")
+ str)))
+ (setq nbacks (+ nbacks 1)))
)
(setq span (next-span span 'type)))