-
Notifications
You must be signed in to change notification settings - Fork 24
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
Breaks auto-complete interface #32
Comments
thanks. |
i did a little digging on the problem and what happens is that when popup.el it's making the popup That behavior should be correct i believe for other things which i don't have the time to check, so i don't know exactly which of the libraries should be patched. What is definitely wrong is popup.el hiding all the overlays from beginning-of-line till end-of-line. It should only hide those beneath the popup actual area. Anyway, for a workaround i did a monkey patch on overlay-put so it can safely ignore indent-guides, it works perfectly fine for my setup, i don't know if it breaks neither did i tested it with other uses of indent-guide or auto-complete/popup:
Hope that helps. |
Further testing showed that a problem persists: |
The problem seems to be that both packages uses overlays before/after-strings. It happens only on empty lines (or lines that are to short to display the indentation) because both overlays get set to the same point and therefore those properties concatenate, there's no overlap possible. I think the only way out is to completely disable those lines when popup.el is being used. |
I don't know if auto-complete has the hooks for this but I ran into the same problem with company-mode. ;; disable indent guide while completion is active
(add-hook 'company-mode-hook
(lambda ()
(add-hook 'company-completion-started-hook (lambda (&optional arg)
(indent-guide-mode -1)) nil 'make-it-local)))
(add-hook 'company-mode-hook
(lambda ()
(add-hook 'company-completion-cancelled-hook (lambda (&optional arg)
(indent-guide-mode 1)) nil 'make-it-local)))
(add-hook 'company-mode-hook
(lambda ()
(add-hook 'company-completion-finished-hook (lambda (&optional arg)
(indent-guide-mode 1)) nil 'make-it-local))) |
hmm, auto-complete does not provide such hooks and we need to use advices to do the same for auto-complete. |
Setting |
Indent-guide breaks auto-complete displaying of completions.
The text was updated successfully, but these errors were encountered: