diff options
| author | Pierre Courtieu | 2002-06-11 18:05:55 +0000 |
|---|---|---|
| committer | Pierre Courtieu | 2002-06-11 18:05:55 +0000 |
| commit | 50dd6fc90665dd805277257b40c93380a535daa2 (patch) | |
| tree | a751652712579466f8a5fcdd238417bb1db1bbb6 | |
| parent | b10c5626a56fac656386daab966fb08a44330a9c (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.el | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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))) |
