diff options
author | 2018-03-08 12:45:37 +0100 | |
---|---|---|
committer | 2018-04-29 20:45:05 +0200 | |
commit | d94fef210a63db4ff34251afe093041912a7cbde (patch) | |
tree | b807e02ad0186efce46f6deae2631fd4616c7523 /plugins/ltac/tacexpr.ml | |
parent | 6879320384e63793ff9447d4aaddc919bac540ec (diff) |
Strict focusing using Default Goal Selector.
We add a [SelectAlreadyFocused] constructor to [goal_selector] (read
"!") which causes a failure when there's not exactly 1 goal and
otherwise is a noop.
Then [Set Default Goal Selector "!".] puts us in "strict focusing"
mode where we can only run tactics if we have only one goal or use a
selector.
Closes #6689.
Diffstat (limited to 'plugins/ltac/tacexpr.ml')
-rw-r--r-- | plugins/ltac/tacexpr.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ltac/tacexpr.ml b/plugins/ltac/tacexpr.ml index 3baa475ab..37abfeee9 100644 --- a/plugins/ltac/tacexpr.ml +++ b/plugins/ltac/tacexpr.ml @@ -36,6 +36,7 @@ type letin_flag = bool (* true = use local def false = use Leibniz *) type clear_flag = bool option (* true = clear hyp, false = keep hyp, None = use default *) type goal_selector = Vernacexpr.goal_selector = + | SelectAlreadyFocused | SelectNth of int | SelectList of (int * int) list | SelectId of Id.t |