From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.cedet,gmane.emacs.devel Subject: Re: CEDET completion-at-point-function Date: Mon, 12 May 2014 21:59:26 -0400 Message-ID: <53717C7E.60208@siege-engine.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399946416 8578 80.91.229.3 (13 May 2014 02:00:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2014 02:00:16 +0000 (UTC) Cc: emacs-devel@gnu.org, cedet-devel@lists.sourceforge.net, dgutov@gnu.org To: Stefan Monnier Original-X-From: cedet-devel-bounces@lists.sourceforge.net Tue May 13 04:00:08 2014 Return-path: Envelope-to: sf-cedet-devel@m.gmane.org Original-Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wk20l-0004pb-S5 for sf-cedet-devel@m.gmane.org; Tue, 13 May 2014 04:00:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Wk20i-0002nP-AH; Tue, 13 May 2014 02:00:04 +0000 Original-Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Wk20g-0002nJ-Gl for cedet-devel@lists.sourceforge.net; Tue, 13 May 2014 02:00:02 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.192.50 as permitted sender) client-ip=209.85.192.50; envelope-from=ericludlam@gmail.com; helo=mail-qg0-f50.google.com; Original-Received: from mail-qg0-f50.google.com ([209.85.192.50]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Wk20U-0006vm-Ol for cedet-devel@lists.sourceforge.net; Tue, 13 May 2014 01:59:58 +0000 Original-Received: by mail-qg0-f50.google.com with SMTP id z60so8751853qgd.9 for ; Mon, 12 May 2014 18:59:45 -0700 (PDT) X-Received: by 10.224.50.81 with SMTP id y17mr42855453qaf.22.1399946385348; Mon, 12 May 2014 18:59:45 -0700 (PDT) Original-Received: from [192.168.1.201] (pool-71-184-209-46.bstnma.fios.verizon.net. [71.184.209.46]) by mx.google.com with ESMTPSA id p104sm8395222qga.31.2014.05.12.18.59.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 18:59:44 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20091222 Shredder/3.1a1pre In-Reply-To: X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ericludlam[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.50 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1Wk20U-0006vm-Ol X-BeenThere: cedet-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Development discussions for CEDET projects List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cedet-devel-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cedet:6826 gmane.emacs.devel:171821 Archived-At: On 05/11/2014 02:24 PM, Stefan Monnier wrote: > I've taken a look at improving semantic.el's > completion-at-point-function, and I'm wondering: > > Can we use lexical-binding in there (completion-at-point-functions was > designed assuming closures are not a problem), or would it be a problem > for compatibility reasons? Hi, As far as I know, semantic-ia-complete-symbol (which is assigned indirectly to completion-at-point-function) has no external dependencies other than frequently being bound to a key. For your reference, the entirety of "semantic/ia.el" was originally setup to be examples on how to use some of semantic's features to create different kinds of useful commands. If this section can be updated as an improved example, I'm all for it. Of course, semantic-ia-complete-symbol calls into other parts of the system for calculating completions, and I am not familiar enough with the lexical-binding topic to know if they would be negatively affected or not. Is there a brief reference I could read about the topic? Thanks Eric ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs