-
Notifications
You must be signed in to change notification settings - Fork 89
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
Comments
@vzaliva thanks for the report! The code you mention has been commented-out by @monnier with this refactoring commit: I've no time this week but if you can prepare a PR that reverts these |
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.
Probably a better option is to fix company-coq so it uses
`syntax-ppss` and `forward-comment` instead. E.g.
(let ((ppss (syntax-ppss))) (when (nth 4 ppss) (nth 8 ppss))))
will return the position of the beginning of the comment if you're
inside a comment or nil otherwise. And (forward-comment 1) will jump
from the beginning of a comment to its end.
Stefan
|
Does it work with nested comments? The previous function description states "If inside nested comments, go to the start of the outer most comment." |
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 :) |
Uncommented coq-find-comment-start, coq-find-comment-end as quick fix for #444
Verified and the issue is fixed with the recent MELPA update. Thanks! |
Thanks @vzaliva ! |
Functions
coq-find-comment-start
andcoq-find-comment-end
are commented out in current MELPA version (20191007.1041) of proof general'scoq-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#225Is there is a reason for commenting them out and perhaps they could be restored?
The text was updated successfully, but these errors were encountered: