]> code.delx.au - gnu-emacs-elpa/commitdiff
Refine the workaround further
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 2 Jan 2016 23:26:38 +0000 (01:26 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 2 Jan 2016 23:26:38 +0000 (01:26 +0200)
Fixes #443

company-capf.el

index 2f2fba109288a3babb915a3763116bbf9bc14801..635dace8f38e21d35d4b51711d9625f04965c06a 100644 (file)
@@ -58,7 +58,8 @@
 
 (defun company--capf-workaround ()
   ;; For http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18067
-  (if (or (not (memq 'python-completion-complete-at-point completion-at-point-functions))
+  (if (or (not (listp completion-at-point-functions))
+          (not (memq 'python-completion-complete-at-point completion-at-point-functions))
           (python-shell-get-process))
       completion-at-point-functions
     (remq 'python-completion-complete-at-point completion-at-point-functions)))