-
Notifications
You must be signed in to change notification settings - Fork 8
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
*idris2-notes*
buffer keeps stealing focus when there's an error if company-mode
is enabled
#36
Comments
There's an option you can find using
I think it may be off by default. I like my emacs to be minimally noisy so I turned it on (and turned "Hole Show On Load" off) |
@gallais Thanks! Didn't even think to check if this behaviour was on purpose and controlled by an option. :) Unfortunately, while setting Here's an example where I run CleanShot.2022-11-17.at.12.34.41.mp4 |
Hi @ehamberg can you please try if the same strange behaviour is present when using https://github.com/idris-hackers/idris-mode ? |
It is not. The
Whoa, if I disable |
It's not the first time |
Thank you @ehamberg
It may be worth to add to readme steps to disable it for idris mode buffers. |
*idris2-notes*
buffer keeps stealing focus when there's an error*idris2-notes*
buffer keeps stealing focus when there's an error if company-mode
is enabled
Yep. This seems to work: (setq company-global-modes '(not idris2-mode)) |
Resolves part of: idris-community/idris2-mode#36 > "The cursor still jumps to the beginning of the line"
I am seeing the same thing using Debugger entered--Lisp error: (error "I can't make sense of the completion task:\n--eval ...")
error("%s (synchronous Idris2 evaluation failed)" "I can't make sense of the completion task:\n--eval ...")
funcall(error "%s (synchronous Idris2 evaluation failed)" "I can't make sense of the completion task:\n--eval ...")
apply(funcall (error "%s (synchronous Idris2 evaluation failed)" "I can't make sense of the completion task:\n--eval ..."))
idris2-eval((:repl-completions "--eval (LiftIO "))
idris2-complete-at-point() I feel it might be better to ignore the failed evaluation rather than pass it on. Preparing a PR |
Whenever I have an error in my code and the
*idris2-notes*
buffer is shown in a window, it steals the focus on key presses such as space,{
,}
,(
,)
,,
,.
and many others, and moves the cursor to the first column of the first line in the*idris2-notes*
buffer, i.e. on the-
here:This behaviour makes it almost impossible to actually fix the bug. I'm using Doom Emacs with the latest idris2-mode (3bcb52a). Is this a bug, or is something wrong on my end?
The text was updated successfully, but these errors were encountered: