-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Point jumps around screen when the pop-up appears #1336
Comments
Hi!
Is that the version installed from GNU ELPA? If so, any change you could try the development version first? You can install it from MELPA. |
Hi! |
Hi! |
So since the issue in my case was due to interaction with linum-mode, and since auto-completion is (to me) much more useful than displaying line numbers, a simple fix was to simply de-activate linum-mode. Besides, linum-mode leads to other performance issues (for instance, when used together with folding), and also seems to be somewhat deprecated: this page https://www.emacswiki.org/emacs/LineNumbers suggests that "display-line-numbers-mode" is the favored line numbering mode for newer versions of emacs. All of this to say that there may not be any "issue" to be fixed. Perhaps one could add a warning somewhere that linum-mode interacts badly with company (leading to the pointer jumping around screen), and suggest either to ditch line numbering or to opt for display-line-numbers-mode. For the record, my linum configuration was: |
Interesting. Have you tried |
|
Indeed this fixes the issue. Thanks! |
Glad you got this working better. 👍 Now, I wouldn't mind actually to look into fixing this for linum, or at least to dig deeper first: maybe it's something that would affect other features/modes/etc, just in rare cases that are annoying to reproduce and consequently go unreported. If it's something tricky and linum-specific, then probably not. Anyway, if you sometime manage to write down a step-by-step repro how to reproduce this, with specific file, and attach it here (the file and the steps), I'll be sure to take a look. No hurry anyway. :-) |
Sure! Here is a setup where it appears in my case: With this init file (put in .txt as github does not accept .el) and this sample text file: Instructions: === company-backends: (company-bbdb company-semantic company-cmake company-capf company-clang company-files Used backend: company-dabbrev |
Thanks! For future reference: any unnecessary step in your reproduction scenario (like Anyway, it does seem specifc to To compare to a similar package which also uses margins, I installed nlinum, a later, apparently more efficient incarnation of this package. The difference is it performs this work during fontification instead. And it doesn't seem to trigger the problem. So, after all, I simply recommend to use either of the alternatives: |
That sounds good, thanks! |
Of course, you can also install it from GNU-devel ELPA. |
Hi,
I have been getting a strange bug with Company lately (it started about a few months ago, but has recently started to become unbearable).
The behavior can be seen on the caption attached HERE: ; the output of the command
M-x company-diag
(in particular, my current setup) is given below.Roughly speaking, in some circumstances, when the Company pop-up appears, the cursor suddenly moves around the buffer. This makes editing impossible and I have to turn off company when this happens.
I should mention that this occurs mainly when the current point is about at the middle of the buffer vertically.
I mainly use Emacs in Auctex-mode, and this is where the described issue occurs.
Thank you very much for your contribution to Company and for your help in this issue. I'd be happy to provide further details or perform some tests.
In the meantime, any "hot fix" would be really appreciated, such as how to disable the pop-up (but keep the one-line autocompletion).
Best wishes,
J
Output of the command
M-x company-diag
Emacs 28.1 (aarch64-apple-darwin21.1.0) of 2022-05-11 on armbob.lan
Company 0.9.13
company-backends: ((company-auctex-macros company-auctex-symbols company-auctex-environments)
company-auctex-bibs company-auctex-labels company-bbdb company-semantic company-cmake company-capf company-clang company-files
(company-dabbrev-code company-gtags company-etags company-keywords)
company-oddmuse company-dabbrev)
Used backend: company-dabbrev
Major mode: latex-mode
Prefix: ""
Completions:
[skipped for brevity; contains a list of 2000+ words]
The text was updated successfully, but these errors were encountered: