monnier pushed a commit to branch master
in repository elpa.

commit 5e13b0468593bcb6bc6fecf0908300254b1508a1
Author: Stefan Monnier <monn...@iro.umontreal.ca>
Date:   Fri Jan 24 13:24:09 2014 -0500

    * company-capf.el (company--capf-data): Don't get confused by lambda exps.
---
 packages/company/company-capf.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages/company/company-capf.el b/packages/company/company-capf.el
index 018c6b7..07d792c 100644
--- a/packages/company/company-capf.el
+++ b/packages/company/company-capf.el
@@ -34,7 +34,7 @@
           (data (run-hook-wrapped 'completion-at-point-functions
                                   ;; Ignore misbehaving functions.
                                   #'completion--capf-wrapper 'optimist)))
-    (when (consp data) data)))
+    (when (and (consp data) (numberp (car data))) data)))
 
 (defun company-capf (command &optional arg &rest _args)
   "`company-mode' back-end using `completion-at-point-functions'.

Reply via email to