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

Improve (company-coq-occur) to cope with non-one-liner statements? #259

Open
erikmd opened this issue Apr 5, 2022 · 2 comments
Open

Improve (company-coq-occur) to cope with non-one-liner statements? #259

erikmd opened this issue Apr 5, 2022 · 2 comments

Comments

@erikmd
Copy link
Contributor

erikmd commented Apr 5, 2022

Dear @cpitclaudel,

@pPomCo and I like the (company-coq-occur) function very much (bound to C-c C-,)

but it often happens that definitions and lemmas are not one-liners… so that we end up with non-informative truncated statements (only the first line :-/)

Do you think it would be easy to extend (company-coq-occur) so that C-c C-, or C-u C-c C-, (for example) includes the whole definition/statement upto the next .<whitespace>?

In any case, let us know if you'd be ready to accept a PR to this aim.

@cpitclaudel
Copy link
Owner

Yes, I'd love to merge a PR for that. But doesn't company-coq-fold do what you want/need?

@erikmd
Copy link
Contributor Author

erikmd commented Apr 6, 2022

Hi @cpitclaudel, OK!

But doesn't company-coq-fold do what you want/need?

We weren't aware of this one… it indeed helps for our use case, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants