From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Ecay Newsgroups: gmane.emacs.devel Subject: Re: Emacs completion matches selection UI Date: Thu, 19 Dec 2013 02:59:25 -0500 Message-ID: <878uvhe0f6.fsf@gmail.com> References: <87fvqtg02v.fsf@flea.lifelogs.com> <8761rkaa5e.fsf@flea.lifelogs.com> <87txf0390n.fsf@flea.lifelogs.com> <87y53komex.fsf@flea.lifelogs.com> <87haa8moh6.fsf@flea.lifelogs.com> <874n67n450.fsf@flea.lifelogs.com> <87eh5bkxca.fsf@flea.lifelogs.com> <87d2kuzzqj.fsf@uwakimon.sk.tsukuba.ac.jp> <87a9fylusq.fsf@flea.lifelogs.com> <878uvizrwz.fsf@uwakimon.sk.tsukuba.ac.jp> <8761qmkyn1.fsf@flea.lifelogs.com> <87zjnyxdpb.fsf@uwakimon.sk.tsukuba.ac.jp> <87k3f2j7xv.fsf@flea.lifelogs.com> <2518D79A-B9E4-45DF-A403-8330145DFD17@gmail.com> <87wqj1xwzc.fsf@uwakimon.sk.tsukuba.ac.jp> <6E27E6FD-4FB8-4342-BB66-1B62E22DDF4F@gmail.com> <87txe5xqyc.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1387439976 19762 80.91.229.3 (19 Dec 2013 07:59:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Dec 2013 07:59:36 +0000 (UTC) Cc: Stefan Monnier , EMACS development team To: "Stephen J. Turnbull" , chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 19 08:59:43 2013 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 1VtYWD-0003jm-V6 for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2013 08:59:42 +0100 Original-Received: from localhost ([::1]:42690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtYWD-0006IM-Mj for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2013 02:59:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtYW6-0006HI-T5 for emacs-devel@gnu.org; Thu, 19 Dec 2013 02:59:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtYW1-0004Ug-FC for emacs-devel@gnu.org; Thu, 19 Dec 2013 02:59:34 -0500 Original-Received: from mail-qe0-x231.google.com ([2607:f8b0:400d:c02::231]:40878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtYW1-0004TK-8X for emacs-devel@gnu.org; Thu, 19 Dec 2013 02:59:29 -0500 Original-Received: by mail-qe0-f49.google.com with SMTP id w7so666011qeb.8 for ; Wed, 18 Dec 2013 23:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=HSFZIGMtWxt+gy4gQdW+3YeOLQ4d4B3IVQP7KikXI18=; b=UmrcTaJFaqD9irx1ri5IDH6LMPyx6tBGHuZJOeGxsS8Wh+VBO6BoTUrp2ZJI/KR6FE p739UvCghb5vBQeUho+lPntMT5Zqktx7nWIvXUGzwkAYaftPUxa2yHj23pFOM/9khGyz d5bvp7W3DiK5z1826rwg/rP21pmw5Uu2fy8n0IMSr8i+WEpVxiNitujpDcwtHb6AVvCa a4vDgyabGYWVLbxvzXYkm78UA/V72MAA1epuyrL0btUxo2dl3y5VN1e2IVUX6NOVOlVv IIRfxCqaYkNlo2DGsAYFJL7b858RYacODr7eRq6Y29AEYUtyc2RqqGiAvToHxsmlhq14 xYTg== X-Received: by 10.49.34.207 with SMTP id b15mr31303qej.49.1387439968021; Wed, 18 Dec 2013 23:59:28 -0800 (PST) Original-Received: from localhost (c-68-81-204-26.hsd1.pa.comcast.net. [68.81.204.26]) by mx.google.com with ESMTPSA id n14sm8077671qav.8.2013.12.18.23.59.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Dec 2013 23:59:27 -0800 (PST) In-Reply-To: <87txe5xqyc.fsf@uwakimon.sk.tsukuba.ac.jp> User-Agent: Notmuch/0.16+154~g96c0ce2 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::231 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:166610 Archived-At: 2013ko abenudak 19an, "Stephen J. Turnbull"-ek idatzi zuen: [...] >=20 >> * Can we get a solid consensus on whether or not this sort of thing >> is desirable in Emacs? >=20 > The necessary widgets (pretty popup menus, etc) should be in core for > the usual reasons that GUI toolkits provide them. Even if core Emacs > developers don't particularly like them (including attempting to teach > new users to avoid them ;-), the demand is there, itches will be > scratched, and it's best if they're scratched consistently. >=20 >> * If we think it=E2=80=99s a good idea to enable, should it be inside Em= acs or >> in some external package? >=20 > Filtering and ordering algorithms don't seem to belong in core yet. > The screenshots of Emacs implementations and my experience with > non-Emacs implementations suggests there's a heck of a lot of > improvement needed. Some API for plugging those into the completion > widgets would probably be a very good idea. In this vein, it may be useful to think of the CompletionUI package . Quoting from the EmacsWiki description, presumably written by the author: =E2=80=9CTypically= , a lot of code in packages providing some kind of text completion deals with the user interface. The goal of CompletionUI is to be the swiss-army knife of in-buffer completion user-interfaces, which any source of completions can plug in to, thus freeing completion package writers to concentrate on the task of finding the completions in the first place.=E2=80=9D In addition to the ability to plug custom UIs into the underlying API, the package claims to itself provide the following UI options (again quoting the wiki): - Dynamic completion: provisionally insert the best completion candidate in the buffer as you type.=20 - Completion hotkeys: single-key selection of a completion candidate. - Cycling: cycle through completion candidates. - Tab-completion: =E2=80=9Ctraditional=E2=80=9D expansion to longest common= substring. - Help-echo: display a list of completion candidates in the echo-area. - Tooltip: display and select from a list of completion candidates in a tool-tip located below the point.=20 - Pop-up frame: display and select from a list of completion candidates in a tool-tip located below the point; toggle between showing some or all possible completions.=20 - Completion menu: allow completion candidates to be selected from a drop-down menu located below the point.=20 - Completion browser: browse through all possible completion candidates in a hierarchical menu located below the point.=20 - auto-completion-mode: automatically complete words as you type. Perhaps predictably , the goal of other completion package writers adopting this system seems to have gone unrealized. But maybe if a similar system were =E2=80=9Cblessed=E2=80=9D by being included = in emacs core (tied to the existing completion-at-point-functions) things might go better. (I have no connection to the author; I simply learned about the package as part of my never-entirely-successful quest for an Intellisense-style in-buffer completion package that is actually usable without extensive tweaking.) --=20 Aaron Ecay