From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Emacs completion matches selection UI Date: Tue, 19 Nov 2013 20:30:14 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87d2lveu6x.fsf@flea.lifelogs.com> References: <87fvqtg02v.fsf@flea.lifelogs.com> <877gc5fm30.fsf@flea.lifelogs.com> <87k3g47m7b.fsf@yandex.ru> <528B6F11.7070607@yandex.ru> <87y54ke8v3.fsf@flea.lifelogs.com> <87li0kdrsz.fsf@flea.lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384911018 7056 80.91.229.3 (20 Nov 2013 01:30:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2013 01:30:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 20 02:30:23 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 1ViwcY-0008EU-BU for ged-emacs-devel@m.gmane.org; Wed, 20 Nov 2013 02:30:22 +0100 Original-Received: from localhost ([::1]:52375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViwcX-0000o5-NQ for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 20:30:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViwcN-0000hx-PZ for emacs-devel@gnu.org; Tue, 19 Nov 2013 20:30:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViwcH-0004GW-Ck for emacs-devel@gnu.org; Tue, 19 Nov 2013 20:30:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViwcH-0004EP-4d for emacs-devel@gnu.org; Tue, 19 Nov 2013 20:30:05 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ViwcG-00086Z-3N for emacs-devel@gnu.org; Wed, 20 Nov 2013 02:30:04 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Nov 2013 02:30:04 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Nov 2013 02:30:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:+coMW2UKdI1mF/ZM5NZVcFRwKv4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:165414 Archived-At: On Tue, 19 Nov 2013 19:28:28 -0500 Stefan Monnier wrote: >> Agreed, although then the *Completions* buffer should at least get >> better highlighting. SM> Not sure what you want here. AFAIK the only thing missing is to SM> highlight the selected entry (which is already done when selecting with SM> the mouse, but not when selecting with the keyboard). That, and to also highlight the portion of the selected entry that matches if the match is partial. >> I agree, and my proposal is to "lock in" the user into the selection >> mode until it's done. SM> Once you're in that mode, we can use any number of key-bindings, there's SM> no problem there. The issue is how to let the use *enter* that mode, SM> where `up' or `down' can be used in the minibuffer, but maybe not SM> for in-buffer completion. Once we're in that mode, up, down, and pretty SM> much anything else can be hijacked just fine. I am OK with any simple key chord to enter it; `TAB' or `right' seem most intuitive to me. Juri suggests `up' which is also OK. >> - decide on "locking in" users during candidate selection (so more >> natural keybindings can be used) or stealing just a few keybindings >> temporarily SM> "just a few" can be many keybindings. My preference is simply to let SM> the user exit that mode "seamlessly" without having to use a special SM> exit key-binding. But that doesn't mean that we should feel restricted SM> in which keys can be used in that special mode. OK, I like that! On Wed, 20 Nov 2013 02:45:50 +0200 Juri Linkov wrote: JL> The bigger problem is in which order to sort completion candidates. JL> When navigating from the minibuffer to the *Completions* buffer JL> `up' should select the first candidate which is more natural to put JL> at the bottom of the *Completions* buffer sorted in reverse order. JL> OTOH, to navigate in the forward order from top to bottom JL> the *Completions* buffer could be displayed below the minibuffer JL> if this is possible. Good points, I don't know what's the best approach here. Ted