From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [elpa] 01/01: * company-capf.el (company--capf-data): Don't get confused by lambda exps. Date: Sat, 25 Jan 2014 16:49:57 -0500 Message-ID: References: <20140124182420.24272.98505@vcs.savannah.gnu.org> <87ppng9un5.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390686616 10207 80.91.229.3 (25 Jan 2014 21:50:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2014 21:50:16 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 25 22:50:20 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7B7M-0002BT-AJ for ged-emacs-devel@m.gmane.org; Sat, 25 Jan 2014 22:50:20 +0100 Original-Received: from localhost ([::1]:52617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B7L-0004J5-Vw for ged-emacs-devel@m.gmane.org; Sat, 25 Jan 2014 16:50:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B7C-0004Iu-Qj for emacs-devel@gnu.org; Sat, 25 Jan 2014 16:50:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7B72-0002Ck-Pv for emacs-devel@gnu.org; Sat, 25 Jan 2014 16:50:10 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B72-0002Cg-M7 for emacs-devel@gnu.org; Sat, 25 Jan 2014 16:50:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXaM/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgkwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFsoXaM/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgkwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46071638" Original-Received: from 108-161-118-140.dsl.teksavvy.com (HELO pastel.home) ([108.161.118.140]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jan 2014 16:49:59 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5C25B60274; Sat, 25 Jan 2014 16:49:57 -0500 (EST) In-Reply-To: <87ppng9un5.fsf@yandex.ru> (Dmitry Gutov's message of "Sat, 25 Jan 2014 13:18:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169085 Archived-At: >> (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))) > This will always fail because completion--capf-wrapper returns the > completion function itself in the car. START and END are at positions 1 > and 2. I'll push a fixed version shortly. Duh! Thanks for catching this. I see now that I "tested" it without recompiling, which is why it seemed to work as well as before. Stefan