-
Notifications
You must be signed in to change notification settings - Fork 145
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
Question about completion mode #547
Comments
Sorry to be so long getting to this. I did reproduce this on an un-customized emacs. I still see this: The one confound is that I'm using Aquamacs, and maybe that is interfering. I will check further. Meanwhile, when you are in this situation, is the cursor in the minibuffer, or does it stay in "thingy.lisp"? It's hard for me to tell from your image, so I am left wondering -- does completion override the bindings for C-n and C-p in "thingy.lisp", or does the cursor get left in the minibuffer so you use C-n and C-p there to navigate and select? For me, navigating the set of completions works, but annoyingly I have to do C-x b to get to the completion buffer before the keystrokes work (which I often forget to do). It seems like this is just my problem, and given the results on emacs w/o customizations, it is most likely an Aquamacs thing. P.S. the contents of the |
I'm very inclined to believe that. Aquamacs is extremely heavily customized last time I used it. I didn't even know it was still a thing, and am suprised SLY works on it. |
@joaotavora Sorry to bother you again, but would you just let me know where the cursor is positioned after the completion key for you? Is it in the completion minibuffer (as I suspect), or in the buffer where the completion command was typed? If it is in the original buffer (not the minibuffer), do C-n and C-p move up and down in the minibuffer or are they interpreted in the source buffer? |
When SLY's built in completion UI kicks in, like in the screenshot above, the active window is the source-editing window (which can be the REPL). Also in this active window, the point (which is the correct term to mean "cursor" in Emacs parlance) is unchanged (i.e. it is where you last left it). When one presses |
Thank you, @joaotavora ! I will look and see why that is not happening for me. Seems like you are saying that the That's a very helpful clue and I will try to figure out what is breaking this! |
I looked further and now I see that the next and previous completion keys seem to work, it's just that for some reason Aquamacs (I think it's Aquamacs!) is rewriting the keystrokes in here:
to be wrong. I wouldn't know how to do this even if I wanted to! |
For anyone else who encounters this problem, I offer a proposed fix from Win Treese, the Aquamacs maintainer:
To clean up the bindings and give the right hint about the keys to use, I think you can use the following code after Sly is loaded:
I will update this issue after testing and close it if this provides the solution. |
I wonder if you can help me debug a problem I am having. sly completions are not working as expected (I think).
Here's what I do:
M-TAB
to request symbol creation*sly-completions*
) with a list of completions and the prompt to use<right>
and<left>
to navigate completions.<right>
My best guess is that this prompt reflects an expectation that the cursor will be in the
*sly-completions*
minibuffer, but for me it is, instead, left in the source buffer. Is that correct?If so, I have no idea what I could be doing to break the cursor placement. But before I go crazy trying to figure this out, I wanted to make sure that I am right in my guess above. Thanks!
The text was updated successfully, but these errors were encountered: