Skip to content
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

coq-find-comment-start, coq-find-comment-end commented out #444

Closed
vzaliva opened this issue Dec 4, 2019 · 6 comments
Closed

coq-find-comment-start, coq-find-comment-end commented out #444

vzaliva opened this issue Dec 4, 2019 · 6 comments
Labels
kind: bug kind: regression pg: proof-shell Related to (default) master PG using proof-shell

Comments

@vzaliva
Copy link
Contributor

vzaliva commented Dec 4, 2019

Functions coq-find-comment-start and coq-find-comment-end are commented out in current MELPA version (20191007.1041) of proof general's coq-indent.el ( https://github.com/ProofGeneral/PG/blob/master/coq/coq-indent.el#L284 ).

These functions are used by M-. functionality of company-coq which is now broken: cpitclaudel/company-coq#225

Is there is a reason for commenting them out and perhaps they could be restored?

@erikmd erikmd added kind: bug kind: regression pg: proof-shell Related to (default) master PG using proof-shell labels Dec 4, 2019
@erikmd
Copy link
Member

erikmd commented Dec 4, 2019

@vzaliva thanks for the report!

The code you mention has been commented-out by @monnier with this refactoring commit:
fb3b75d - IIUC (according to the commit message), this code has been removed as it wasn't used elsewhere in PG (while company-coq does depend on it as you point out !-) so I guess this removal can/should be reverted.

I've no time this week but if you can prepare a PR that reverts these coq-indent.el removals, I'd be happy to integrate it.

@monnier
Copy link
Contributor

monnier commented Dec 4, 2019 via email

@vzaliva
Copy link
Contributor Author

vzaliva commented Dec 4, 2019

Does it work with nested comments? The previous function description states "If inside nested comments, go to the start of the outer most comment."

@vzaliva
Copy link
Contributor Author

vzaliva commented Dec 4, 2019

It is up to @cpitclaudel to change company-coq. I am afraid I am no up to this task. I am just a user trying to fix the tool I use every day. I will be happy to submit PR undoing removal of these functions in PG. This is easy enough :)

erikmd added a commit that referenced this issue Dec 5, 2019
Uncommented coq-find-comment-start, coq-find-comment-end as quick fix for #444
@vzaliva
Copy link
Contributor Author

vzaliva commented Dec 5, 2019

Verified and the issue is fixed with the recent MELPA update. Thanks!

@erikmd
Copy link
Member

erikmd commented Dec 5, 2019

Thanks @vzaliva !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug kind: regression pg: proof-shell Related to (default) master PG using proof-shell
Projects
None yet
Development

No branches or pull requests

3 participants