-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Company autocompletion unpredictable in terminal #377
Comments
Hmmm... I normally use a GUI version of Emacs, typically Emacs HEAD. Do you see the problem when starting Emacs in the terminal, or creating a terminal frame using Emacsclient? I've tried both with my Emacs and can't reproduce this. |
Sorry, I should have provided steps to reproduce: Inside OSX Terminal
|
purcell
added a commit
to purcell/company-quickhelp
that referenced
this issue
Feb 26, 2017
It's possible for company-quickhelp to be enabled in terminal Emacs frames, e.g. by starting a GUI frame and then opening additional terminal frames with emacsclient. And, indeed, it should logically always be safe to enable company-quickhelp-mode in any buffer, because that buffer may be displayed in terminal or GUI frames at any future time. Without this change, when company calls the company-quickhelp backend in terminal frames, pos-tip-hide is called unconditionally, which results in errors. For real-world examples, see purcell/emacs.d#377 and purcell/emacs.d#414. This commit adds a function called company-quickhelp-pos-tip-available-p, which is used to detect and prevent these errors.
I believe this is now fixed upstream in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Emacs version:
25.1.1
(viabrew install --devel emacs
)Also tried:
24.5.1
,24.5.1 --with-x
On a fresh clone, running
M-/
, orcompany-complete
fails (no tooltip) with the error message:Company: frontend company-quickhelp-frontend error "Symbol's function definition is void: pos-tip-hide" on command hide
.Company completion is unpredictable - sometimes it works the first time running
company-complete
after opening a buffer, but afterwards it fails and throws the error above consistently. That's until I removecompany-quickhelp
from company frontends.I suspect this is because
pos-tip
doesn't work in the terminal.@purcell Are you using a GUI distribution of Emacs? If you're using it in the terminal and the tooltip with documentation pop-up is working well, I'd be grateful to know how. For the moment I'm relying on F1 to open a separate documentation buffer, which is a bit more cumbersome.
The text was updated successfully, but these errors were encountered: