diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2011-05-26 16:05:53 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2011-05-26 16:05:53 +0000 |
commit | c42dcf668a91be5d6e2a07f543dd532f0961af2b (patch) | |
tree | 776e5bdaabb9dce34fa6da602ad1aa3f7b2a3a6e /generic/proof-script.el | |
parent | b5435ab945710dd067b96ff2e25c3d058c11f831 (diff) |
proof-retract-before-change: fix Trac #403 (at least partially) by
removing restriction during automatic retraction so
proof-retract-until-point behaves correctly.
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r-- | generic/proof-script.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el index 90250753..020f4439 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -1977,8 +1977,10 @@ No effect if prover is busy." (proof-interrupt-process) (proof-shell-wait)) (save-excursion - (goto-char beg) - (proof-retract-until-point)))) + (save-restriction ;; see Trac#403 + (widen) + (goto-char beg) + (proof-retract-until-point))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |