Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make focus command and goal selection for query commands independent …
…of ltac1 Fix #18351
- Loading branch information
1 parent
0f0f505
commit 1af23bf
Showing
10 changed files
with
140 additions
and
93 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
doc/changelog/08-vernac-commands-and-options/18707-vernac-focus.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- **Changed:** | ||
focus commands such as `1:{` and goal selection for query commands such as `1: Check` | ||
do not need `Classic` (Ltac1) proof mode to function. In particular they function in Ltac2 mode | ||
(`#18707 <https://github.com/coq/coq/pull/18707>`_, | ||
fixes `#18351 <https://github.com/coq/coq/issues/18351>`_, | ||
by Gaëtan Gilbert). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Require Import Ltac2.Ltac2. | ||
|
||
Set Default Goal Selector "!". | ||
|
||
Goal True /\ True. | ||
split. | ||
Fail exact I. (* not focused *) | ||
1:{ exact I. } | ||
exact I. | ||
Qed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Check True. | ||
Goal True /\ True. | ||
Check True. | ||
1:Check True. | ||
1: idtac. | ||
1:{ admit. } | ||
Abort. | ||
|
||
Require Import Ltac2.Ltac2. | ||
|
||
Check True. | ||
Goal True /\ True. | ||
Check True. | ||
1:Check True. | ||
1: (). | ||
1:{ admit. } | ||
Abort. |
Oops, something went wrong.