-
Notifications
You must be signed in to change notification settings - Fork 114
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 completion-at-point implementation ocaml-community/utop#261 #406
Conversation
@bbatsov could you review? |
Overall the code looks good to me. In general I think this should be enabled by default - probably unconditionally, given it's the more generic method of completion in Emacs. I see very little point to have to enable manually a |
While you're at this - I'd also suggest incorporating those doc improvements proposed a while ago #326 |
As a temporary fix, I added a dispatch function that can be bound to TAB that either calls If it's that simple, I can do that here and then merge in #326 with changes that explain which backend to use. It might also be worth removing the |
You don't really need to do anything in utop-mode for
Yeah, I'm not sure why it was made company-specific in utop itself. I guess the author of the functionality was a company user and this was before capf became popular (and company alternatives like corfu). |
@rgrinberg @emillon Seems we forgot about this PR, which is good to merge IMO. (especially given that company-mode as not as popular as it used to be) |
ok, thanks! |
Thanks! |
CHANGES: * Fix regression with unit qualification when a `Unit` module is in scope with no `()` constructor (ocaml-community/utop#429, fixes ocaml-community/utop#428, @emillon) * emacs: add completion-at-point implementation (ocaml-community/utop#406, fixes ocaml-community/utop#261, @j-shilling)
After poking around for ways to use my normal
completion-at-point
workflow in the utop buffer, I came accross issue #261, which is a feature request to provide a completion-at-point-fuction.This is an implementation I came up with that works for me and I wanted to share it here in case anyone else found it useful or had any feedback.