-
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
add customizable variables to configure which part of a goal the goal buffer will focus on #654
base: master
Are you sure you want to change the base?
Conversation
buffer will focus on
Thanks. This is a good idea. I will have a look at your patch asap. Can you explain how the user does specify the part of the goal to follow? Is it by selecting some peace of it? |
Here is how I use it to improve my workflow with the Iris Proof Mode (IPM). Iris encodes different kinds of assumptions in the conclusion of a goal so the conclusion you're actually interested in is not quite the same as the one you're interested in with the Iris Proof Mode. I put these lines in my
|
So the short answer to your question is: by writing a regexp that will match a piece of the goal |
One more note: I made sure that the default has the same behavior as the current version. |
@Matafou @cipher1024 what is the status of this PR? |
Looks good and useful to me. Thanks again! |
:type '(radio | ||
(const :tag "move conclusion marker to the top of the window" top) | ||
(const :tag "move conclusion marker to the middle of the window" middle) | ||
(const :tag "move conclusion marker to the bottom of the window" bottom))) | ||
|
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.
For better user configuration should we merge this preference with coq-prefer-top-of-conclusion
?
Currently if this one is nil then we show the end of the conclusion (of the first goal). Something like:
(const :tag "focus on the end of the conclusion even if it hides the conclusion marker" tail)
coq-prefer-top-of-conclusion
could be left for compatibilty.
@cipher1024 what do you think?
By setting
coq-prefer-top-of-conclusion
tot
, we get Proof General to focus on the conclusion of the first goal after displaying the list of goals of a proof. The conclusion is defined as whatever is preceded by=======
. In some cases, it can be useful to mark a different part of the conclusion as the main point of interest. This PR allows the customization of that marker as well as the ability to choose where to place that marker in the window when focusing on it.