From 1ee9a1893fb61088fb53988bd6b4f2766f466b4c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 10 May 2018 19:27:14 +0200 Subject: [PATCH] completion/company: company-frontends bug fixed upstream --- modules/completion/company/config.el | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/completion/company/config.el b/modules/completion/company/config.el index 4fd2f7635..c16ca0d91 100644 --- a/modules/completion/company/config.el +++ b/modules/completion/company/config.el @@ -58,15 +58,6 @@ MODES should be one major-mode symbol or a list of them." (def-package! company-box :when (and EMACS26+ (featurep! +childframe)) :hook (company-mode . company-box-mode) - :init - (defun +company|fix-frontends () - "Ensure `company-pseudo-tooltip-frontend' is *not* in `company-frontends' -when company-box is active, which are incompatible and cause duplicate popups." - (make-variable-buffer-local 'company-frontends) - (if company-box-mode - (setq company-frontends (delq 'company-pseudo-tooltip-frontend company-frontends)) - (cl-pushnew 'company-pseudo-tooltip-frontend company-frontends :test #'eq))) - (add-hook 'company-box-mode-hook #'+company|fix-frontends) :config (setq company-box-backends-colors nil company-box-icons-elisp