-
Notifications
You must be signed in to change notification settings - Fork 86
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
Using PG/xml, C-c C-p no longer shows the context for the current goal #233
Comments
I can verify that Do you mean that the hypotheses have scrolled out of view, or are they missing entirely? |
The Hypotheses are being scrolled out of view. I can scroll them back, but it requires moving point into the Goals window to do so. |
Got it, I'll look at that. |
PG/xml is making some attempt to scroll the goals buffer on In an example I tried, with a large context, the goal scrolled slightly below the buffer separator, rather than right at the bottom, as in |
Indeed the best heuristic I found for that is to show as much as possible of the goal's conclusion.
@psteckler this is implemented in |
Please try setting |
It's called explicitly in PG/xml, renamed to |
In @jwiegley Can you try making that change, recompiling. If it looks good, I'll submit a PR with the change. |
Please try setting coq-prefer-top-of-conclusion to t.
I do have this set to `t`.
|
If that's set to |
I think that PG/xml may be doing the right thing in the case that If I understand the code here, it says that if the separator is not visible, then put the point at the separator, then put the point 0 lines from the top of the window -- which is what you showed above. For PG in I think you may get what you want by setting |
So, the reason I don't have it set to |
@psteckler in principle if we do not see the goal separator it means that there is not enough room to see hypothesis. In @jwiegley example the goal is a one liner so this code is not triggered at all. This code is meant to maximize the display of the current goal with a priority on the conclusion. Coq-prefer is only to decide if one prefer the top of the conclusion or its end. |
Yes, in |
Created #342. Please see whether this fixes the issue. |
@psteckler I have a context and goal that looks like this:
When I use
C-c C-p
now to refresh the display, or after hitting the electric terminator, all that I see in the*goals*
buffer is:The text was updated successfully, but these errors were encountered: