Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #18707: Make focus command and goal selection for query comm…
…ands independent of ltac1 Reviewed-by: ppedrot Co-authored-by: ppedrot <ppedrot@users.noreply.github.com>
- Loading branch information
Showing
14 changed files
with
158 additions
and
95 deletions.
There are no files selected for viewing
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 @@ | ||
overlay mtac2 https://github.com/SkySkimmer/Mtac2 vernac-focus 18707 |
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 was deleted.
Oops, something went wrong.
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,12 @@ | ||
|
||
Coq < Coq < Coq < Toplevel input, characters 0-1: | ||
> { | ||
> ^ | ||
Error: Syntax error: illegal begin of toplevel:vernac_toplevel. | ||
|
||
Coq < Coq < Coq < Toplevel input, characters 58-59: | ||
> } | ||
> ^ | ||
Error: Syntax error: illegal begin of toplevel:vernac_toplevel. | ||
|
||
|
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,5 @@ | ||
{ | ||
|
||
Comments. (* coqtop parsing recovery skips to the dot *) | ||
|
||
} |
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.