diff options
author | Christophe Raffalli <christophe.raffalli@univ-savoie.fr> | 2000-09-15 13:56:04 +0000 |
---|---|---|
committer | Christophe Raffalli <christophe.raffalli@univ-savoie.fr> | 2000-09-15 13:56:04 +0000 |
commit | 5a9c3db81dae62d735af992b4b5304440548fee4 (patch) | |
tree | 85ff8cc9ed7eeb003edf16cef86bd065a25f8850 /generic | |
parent | 40d4ccebf9a35aa65ad163a1527405196c1710c4 (diff) |
added proof-retract-current-goal
Diffstat (limited to 'generic')
-rw-r--r-- | generic/proof-script.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el index fb8d1199..014b99ff 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -1973,6 +1973,19 @@ the proof script." (proof-retract-until-point-interactive)) (proof-maybe-follow-locked-end)) +(defun proof-retract-current-goal () + "Retract the current proof, and move point to its start." + (interactive) + (proof-maybe-save-point + (let + ((span (proof-last-goal-or-goalsave))) + (if (and span (not (eq (span-property span 'type) 'goalsave)) + (< (span-end span) (proof-unprocessed-begin))) + (progn + (goto-char (span-start span)) + (proof-retract-until-point-interactive) + (proof-maybe-follow-locked-end)) + (error "Not proving"))))) ;; ;; Interrupt |