aboutsummaryrefslogtreecommitdiff
path: root/proofs/proofview.ml
diff options
context:
space:
mode:
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r--proofs/proofview.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml
index d207a03825..74f41d0713 100644
--- a/proofs/proofview.ml
+++ b/proofs/proofview.ml
@@ -549,6 +549,8 @@ let tclEVARMAP =
let tclENV = Proof.current
+let tclIN_ENV = Proof.set_local
+
let tclEFFECTS eff =
Proof.modify (fun initial -> emit_side_effects eff initial)
@@ -875,6 +877,9 @@ module Goal = struct
end
let enter f =
+ (* the global environment of the tactic is changed to that of
+ the goal *)
+ let f gl = Proof.set_local (env gl) (f gl) in
list_iter_goal () begin fun goal () ->
Proof.current >>= fun env ->
tclEVARMAP >>= fun sigma ->
@@ -892,6 +897,9 @@ module Goal = struct
end
let raw_enter f =
+ (* the global environment of the tactic is changed to that of
+ the goal *)
+ let f gl = Proof.set_local (env gl) (f gl) in
list_iter_goal () begin fun goal () ->
Proof.current >>= fun env ->
tclEVARMAP >>= fun sigma ->