-
Notifications
You must be signed in to change notification settings - Fork 33
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
Consult narrowing is broken due to computing table outside minibuffer #320
Comments
Okay now I understand the problem - my predicate relies on being executed in the minibuffer :( And this works with icomplete so I wonder what the correct behavior is. |
The commit was to speed up for |
@clemera It relies on minibuffer local variables. EDIT: I could also fix this on the side of consult trying to obtain the minibuffer local variable. But I think we should figure out instead what the correct behavior is. Maybe really special case describe variable? I mean introducing a buffer switch is not natural, so it is unexpected that this happens by default. For describe-variable we need the special case though. What is ivy doing exactly? Are they also doing exactly this - switching to the latest buffer? EDIT2: I think the natural thing is that all the callbacks invoked from completing-read live inside the minibuffer. I think this is what I implicitly assumed all the time and I think this assumption did hold until now. Also for the annotators I think. |
I agree the buffer switch can always be unexpected. Ivy does compute the candidates before even entering the minibuffer. In the light of this I think special casing is probably the best here. |
Maybe it makes sense to special case the exact predicate function. I guess it is a named predicate for describe-variable, not a lambda? |
No, it is a lambda I think we can do it for |
@clemera Okay, that's also good! |
The other commands that use it are |
Can be closed? |
The offending commit is b462920, found via bisect. It worked before that commit and it still works with icomplete. Some problem with the predicate. My suggestion would be to revert b462920 at first.
The text was updated successfully, but these errors were encountered: