aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index f7b6628b..4447f368 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -372,11 +372,14 @@ the hooks `proof-activate-scripting-hook' are run."
;; Turn off Scripting in the old buffer.
(setq proof-active-buffer-fake-minor-mode nil)))
- ;; is this a fresh script mode buffer, with no locked region?
+ ;; does the new scripting buffer already have a locked region?
(if (member (current-buffer) proof-script-buffer-list)
+ ;; If so, it must be moved to the head of the list
(setq proof-script-buffer-list
(remove (current-buffer) proof-script-buffer-list))
+ ;; If not, initialise the spans.
(proof-init-segmentation))
+
(setq proof-script-buffer-list
(cons (current-buffer) proof-script-buffer-list))