Open axe1d opened 7 months ago
The change is nice. A few remarks here and there. 2 questions:
coq-test-coqtop-unavailable.el
fix seems unrelated but real. @hendriktews, @erikmd should we fix this?The change is nice. A few remarks here and there. 2 questions:
- should we remove the code that displays this information in the scritpting buffer then?
- the
coq-test-coqtop-unavailable.el
fix seems unrelated but real. @hendriktews, @erikmd should we fix this?
Thanks for your answer.
* the `coq-test-coqtop-unavailable.el` fix seems unrelated but real. @hendriktews, @erikmd should we fix this?
The error is related to this PR, it was introduced in the first commit f6a425f.
The PR should first be cleaned up (useless files, then reduced to one commit imho.
The PR should first be cleaned up (useless files, then reduced to one commit imho.
I thank you all for taking the time for reviewing my PR (which is my first ever, that's why it was a bit messy, and I apologize for that). I think it is a bit cleaner, and I welcome any advice on how to improve it before it can be merged (if it's needed of course).
I have the impression that the "clear goal window" part that is mentioned in the title of this PR is not present in the patch anymore. Can you confirm this? (I also suspect that this aspect did not work in your previous version, at least not for Admitted, as I don't remember that you have changed that the goals-reset-after-admitted
is expected to fail, as it was before I merged PR #748 -- but I guess this suspicion is completely irrelevant now.)
I am not convinced every user will be fond of this change. The mode line is usually crowded and often it is truncated and some parts are not visible. Maybe this change should therefore be customizable, @erikmd @Matafou what is your opinion here?
My opinion is that everything should be customizable, but I don't always apply it to myself. I think the current goal counter (on the scripting buffer) is not customizable either.
Hi everyone, I modified my feature for Coq-only implementation, moved my functions to the coq subdir, and adapted the modeline update only when PG is instantiated for Coq. My goal here is to offer the possibility to users to custom the modeline as mentioned in #605. I thank you all again for this precise review of my code.
I have been thinking about this PR a bit more and I think we should not merge it.
See https://github.com/ProofGeneral/PG/blob/734bcdb27fdcf54fbe6ab05bf957408e70c69748/coq/coq.el#L3121 and following, in particular the line:
(add-hook 'proof-shell-handle-delayed-output-hook #'coq-update-minor-mode-alist)
Feel free to submit a new PR adapting this part of the code.
Remark on the code: Testing the name of the prover in the generic code is not the way PG is supposed to be configured. Specific provers should not appear in the generic part.
If noone object I shll close this PR soon.
In response to issues #605 and #168, I moved the information of current goal to the goals buffer modeline (to save some space and visibility basically), and cleared the goals buffer when encountering skip proof tactics like Abort. or Admitted. in Coq.