From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toby Cubitt Newsgroups: gmane.emacs.devel Subject: Re: Completions in Semantic Date: Fri, 30 Oct 2009 14:17:17 -0700 Message-ID: <20091030211717.GF8401@c3po.kitp.ucsb.edu> References: <87tyxwxq6t.fsf@stupidchicken.com> <1255924220.6961.1039.camel@projectile.siege-engine.com> <1255969613.6961.1056.camel@projectile.siege-engine.com> <1255980824.6961.1075.camel@projectile.siege-engine.com> <1255990628.6961.1084.camel@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1256940260 4400 80.91.229.12 (30 Oct 2009 22:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 22:04:20 +0000 (UTC) Cc: Nikolaj Schumacher , Chong Yidong , emacs-devel@gnu.org, Stefan Monnier , eric@siege-engine.com, Drew Adams To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 30 23:04:12 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3zZr-0006kr-9N for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2009 23:04:11 +0100 Original-Received: from localhost ([127.0.0.1]:36784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3zZq-0007Sj-TS for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2009 18:04:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3yrS-0000bQ-S5 for emacs-devel@gnu.org; Fri, 30 Oct 2009 17:18:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3yrO-0000Zj-DU for emacs-devel@gnu.org; Fri, 30 Oct 2009 17:18:18 -0400 Original-Received: from [199.232.76.173] (port=33717 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3yrN-0000ZZ-Vk for emacs-devel@gnu.org; Fri, 30 Oct 2009 17:18:14 -0400 Original-Received: from mail.geekisp.com ([216.168.135.169]:27276 helo=starfish.geekisp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3yrN-0000LZ-Ej for emacs-devel@gnu.org; Fri, 30 Oct 2009 17:18:13 -0400 Original-Received: (qmail 16278 invoked by uid 1003); 30 Oct 2009 21:18:09 -0000 Original-Received: from c3po (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Fri, 30 Oct 2009 17:18:05 -0400 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) X-Primary-Address: toby@dr-qubit.org X-detected-operating-system: by monty-python.gnu.org: OpenBSD 3.0-3.9 X-Mailman-Approved-At: Fri, 30 Oct 2009 18:04:04 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116482 Archived-At: On Tue, Oct 20, 2009 at 02:07:07AM +0200, Lennart Borgman wrote: > On Tue, Oct 20, 2009 at 12:17 AM, Eric M. Ludlam wrote: > > > > The semantic complete code for inline stuff uses the same completion and > > display engines as the minibuffer or inline prompts, so you can mix and > > match the pieces.  Hopefully an official API can do something similar, > > so you can complete in the minibuffer or inline with the same functions. > > I think the authors of company-mode and completion-UI (Nikolaj and > Toby) are interested in this too. And Drew, of course. I'm a bit late to the party, but I think completion-UI already provides hooks for much of what's being discussed (e.g. annotating completions with additional information, a generic framework for defining new completion UIs and completion sources...). I had a discussion a couple of years ago (more?) with RMS about submitting completion-UI for inclusion in Emacs, which led me to rework parts of it based on his suggestions. By the end of the discussion, it was in a state that RMS was happy with. However, it was in the middle of the version 22 feature freeze, and I promised to submit it for possible inclusion after the end of the freeze. There were three reasons I never got around to it: 1) I forgot, 2) I still wasn't quite happy with the code, and 3) I hadn't documented it (other than docstrings). Since then, I've at least fixed 2) so that the code is much cleaner and clearer. I still haven't fixed 3). But maybe it's time I put completion-UI up for inclusion, and if it's favourably received it might give me the incentive to document it properly... If you're interested, the code can be found at www.dr-qubit.org/emacs.php, and the direct download link is: http://dr-qubit.org/predictive/completion-ui-0.11.7.tar.gz Toby -- Dr T. S. Cubitt Quantum Information Theory group Department of Mathematics University of Bristol United Kingdom email: tsc25@cantab.net web: www.dr-qubit.org