diff options
| author | letouzey | 2012-03-21 14:41:39 +0000 |
|---|---|---|
| committer | letouzey | 2012-03-21 14:41:39 +0000 |
| commit | 49c38a4254df8f0ace8d94ba08e3762d44bee298 (patch) | |
| tree | 6150f1963da235cb65d4e3c3529cb01f4ed9886d /kernel/cbytecodes.ml | |
| parent | debb1dba19c079afd7657e8518034209f08bb2b1 (diff) | |
Pfedit: avoid Undoing too much
It seems that we can currently do a successful Undo (but not two!)
on a freshly started Lemma. Let's add a depth check on Pfedit.undo
to avoid that. This way, we cannot Undo to depth < 1 (with 1 being
the initial depth of a lemma).
Simplier implementation of Pfedit.restart : it is Pfedit.undo_todepth 1.
This extra initial step in the Undo Stack has probably something
to see with the Lemma argument introduction. For instance, before this
patch we had:
Lemma test n : n+0=n.
Restart. (* now the goal is universally quantified ! *)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15075 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/cbytecodes.ml')
0 files changed, 0 insertions, 0 deletions
