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

Don't wrap completing-read #475

Closed

Conversation

theothornhill
Copy link
Contributor

@theothornhill theothornhill commented Nov 16, 2021

Sly wraps completing-read to force ido to provide better UX. This is
interfering with completion frameworks that don't set the
completing-read-function such as vertico and mct. Considering that these
packages serve to provide better UX, this functionality shouldn't really be
necessary. This might need a version bump, since it is a user visible change.

See: https://gitlab.com/protesilaos/mct/-/issues/9

@theothornhill
Copy link
Contributor Author

Oops sorry didn't see #473...

@joaotavora
Copy link
Owner

This is OK @theothornhill. Please make a NEWS change, and link #473 in the commit message. use push -f if you can.

Sly wraps `completing-read' to force ido to provide better UX.  This is
interfering with completion frameworks that don't set the
`completing-read-function' such as `vertico' and `mct'.  Considering that these
packages serve to provide better UX, this functionality shouldn't really be
necessary.

See joaotavora#473

* lib/sly-messages.el (sly-completing-read): Remove wrapper funcition that only
serves to force ido-completion

* contrib/sly-mrepl.el (sly-mrepl-shortcut): Use vanilla completing-read
* sly.el (sly-read-package-name): Use vanilla completing-read
(sly--read-interactive-args): Use vanilla completing-read
(sly-prompt-for-connection): Use vanilla completing-read
(sly-switch-to-most-recent): Use vanilla completing-read
(sly-info): Use vanilla completing-read
(sly-db-invoke-restart-by-name): Use vanilla completing-read
(sly-read-connection): Use vanilla completing-read
(sly-read-inspector-name): Use vanilla completing-read
(sly-contrib--read-contrib-name): Use vanilla completing-read
@theothornhill
Copy link
Contributor Author

Great news! Hopefully the news entry is ok. Updated the commit, should be good now.

@joaotavora
Copy link
Owner

I pushed this with some tweaks. 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

Successfully merging this pull request may close these issues.

None yet

2 participants