-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve PG support of Show Proof Diffs #490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @CyrilAnac, I added several comments you could take into account till next meeting,
also it seems the current code make a CI test fail, maybe you can have a look as well (or we'll discuss this next week)
@erikmd The feature seems to work now, I'm waiting for an other review or merging approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me. github shows strang indentation, is it due to tab indent?
General question: what will happen if we switch to the "always silent. Do Show when needed" described here #467 (comment)? |
Thanks @CyrilAnac ! the feature looks very nice. However it seems the following bug is introduced: (1) when opening a .v file Lemma test : forall n : nat, n = n.
reflexivity. (* (2) then doing "C-c C-RET" to here *) (3) and finally doing "C-c C-u" to backtrack, we get:
− I'm using Coq 8.11.1 on GNU/Linux |
Hi @Matafou
From my understanding the features are not incompatible but essentially orthogonal. To summarize the situation:
|
Apparently this can be reproduced by directly processing the first line of |
@erikmd Indeed, I introduced a bug here, the result of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CyrilAnac !
BTW if you have some time, you might want to add one or two unit tests (?)
Also before merging this feature, it'd be great to have users test it a little bit further (notably to ensure there is no unforeseen regression), maybe @jfehrle or @anton-trunov would have the time to do this? FYI to retrieve the code of this PR it should suffice to uninstall
and the two options at stake are: |
Sorry, the feature is not yet ready.
we definitely should add such tests! I've spotted the following two bugs:
|
Show Proof Diffs is in 8.11. Perhaps you meant "if (coq--post-v810)"?
I don't use PG or emacs on a regular basis. Looks like I don't even have emacs installed on my new laptop. Perhaps Anton would be willing to try it first. |
a2752ce
to
5988d44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CyrilAnac, I can confirm the backtracking bug is fixed!
I just left a few minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CyrilAnac, I've re-tested with Coq 8.11.1 and the PR looks very fine now!
Cc @ProofGeneral/core I propose to merge this tonight if you don't object.
LGTM |
Close #487