-
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
[sly-mrepl-indent-and-complete-symbol][TAB]strange behaviour ... #165
Comments
Thanks for such a detailed report, it's very important for me to have such a good guide to reproduce the problem. |
I can't detect anything wrong. Here's a GIF (another eloquent way to show problems nowadays, using Peek) |
Forgot to show that my sbcl version is 1.4.1. |
There seem to be only a few more variables:
can you |
EDIT: I see you had already shown the OS and emacs version. I'm really at a loss here. I will try later with Mac OSX 10.9 |
Fri Jun 29 21:38:12 BST 2018 Will attempt to find a peek equivalent. In the animated gif you provided, you've only done step 5 (out of what I provided). Try step 7. At the CL-USER> prompt, type a |
Wow, really strange. I wonder if it's terminal emacs, I mean emacs used without a windowing kit... Will try that later. Almost surely a bug in Sly or Emacs itself. (Btw your original report was fine, no need for gifs, tho it's cool) |
I confirmed this in Emacs 26.1 in the following case: type SPC, then some text, then TAB. Point goes to beginning of line and errors. The error doesn't produce a backtrace even with In Emacs 25.2 this brings back the contents of the first line one position, which is the correct, expected behaviour. I don't know if this is a bug in Emacs or SLY's misuse of some Emacs feature (that happened to work without problems in Emacs 25.2). |
By the way @rprimus, are you sure that in your point 6. (the second TAB) you don't get a completion of the first option? |
@rprimus this is an Emacs bug, a regression in version 26.1. Follow it here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32014. In the meantime, or until I find a workaround, refrain from typing SPC before an expression in the first line of a multi-line REPL expression. |
Sat Jun 30 00:29:50 BST 2018
A For steps 5 - 10, everything presented is typed directly after the REPL prompt.
@joaotavora - thanks for reporting!! |
* contrib/sly-mrepl.el (sly-workaround-for-emacs-bug-32014): Work around emacs Bug#32014.
@rprimus, there are now two issues here:
I meant that point 6 in your original recipe, the second
SLY opts to not show completions if there's nothing preceding point. I think this is reasonably sane, but I'll have a look if I can change this. |
Sat Jun 30 21:32:35 BST 2018 Woo hoo! Thank you for the quick workaround!!
Makes sense. This is an all-or-nothing situation. As a CL beginner, having all completions allows me to explore whats available. @joaotavora - many thanks. |
You're welcome, thank you for the report.
May I suggest Before letting TAB complete from the empty string, there's a few changes I have to make first, so I'm closing this in the meantime. Let me know if you want me to reopen. |
Fri Jun 29 18:32:26 BST 2018
Info:
Problem:
In the mREPL,
<TAB>
does not perform completion consistently at the prompt.Background:
Initially encountered this when going through the manual in section: 3. A SLY tour for SLIME users - at the point where
cl-ppcre
needs to be loaded viaquicklisp
.Steps to reproduce:
<TAB>
;; works as expected<TAB>
;; nothing happens<SPACE><TAB>
;; cursor moves to position 0 (start of line)<SPACE>
ql:<TAB>
;; cursor moves to start of line<TAB>
) ;; works as expected<SPACE>
(ql:<TAB>
) ;;cursor moves to start of lineIs this the expected behaviour when using
<TAB>
?Initially, I thought this was related to this lispy issue (during regular usage), however, the above testing proves otherwise.
[During regular usage, I've tested by tracing
sly-mrepl-indent-and-complete-symbol
,indent-for-tab-command
andlispy--indent-for-tab
, but nothing conclusive.]The text was updated successfully, but these errors were encountered: