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 09:58:40 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87y54ke8v3.fsf@flea.lifelogs.com> References: <87fvqtg02v.fsf@flea.lifelogs.com> <877gc5fm30.fsf@flea.lifelogs.com> <87k3g47m7b.fsf@yandex.ru> <528B6F11.7070607@yandex.ru> 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 1384873118 15284 80.91.229.3 (19 Nov 2013 14:58:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 14:58:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 19 15:58: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 1VimlG-0001ej-Uk for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 15:58:43 +0100 Original-Received: from localhost ([::1]:49754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VimlG-0000Ev-5m for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 09:58:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vimki-00083U-3r for emacs-devel@gnu.org; Tue, 19 Nov 2013 09:58:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vimkc-0001ce-PY for emacs-devel@gnu.org; Tue, 19 Nov 2013 09:58:08 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vimkc-0001cX-Ik for emacs-devel@gnu.org; Tue, 19 Nov 2013 09:58:02 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vimkb-0001KZ-HS for emacs-devel@gnu.org; Tue, 19 Nov 2013 15:58:01 +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 ; Tue, 19 Nov 2013 15:58:01 +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 ; Tue, 19 Nov 2013 15:58:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 42 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:2464CDi+Jt50casnWR7kCUN45Fk= 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:165385 Archived-At: On Tue, 19 Nov 2013 16:00:49 +0200 Dmitry Gutov wrote: DG> In graphical mode, I think we can make a more reliable popup by DG> adapting some code in `tooltip.el'. That would be incompatible with DG> running in terminal, but there are no proportional fonts in terminal DG> either (I think...?) Works for me, as long as it's standard (so we don't have the current "reinvention of the wheel" everywhere). On Tue, 19 Nov 2013 09:00:40 -0500 Stefan Monnier wrote: SM> For the "appear" part you could start with the trivial minor-mode below. SM> But I think what Ted is after is the other part: down/up/... Yes. Appearance is not as important as usability to me, except where it interferes with usability (e.g. lack of highlighting of the currently selected candidate, etc.). SM> While there is a risk of conflict in key-bindings, I do think it should SM> be possible to "keep the best of both worlds" such that it could be SM> enabled by default. SM> E.g.: keep the same behavior by default as we have now, except that we SM> add a new `select-completion-mode'. In this new mode, cursor keys move SM> between elements of the completions list, RET selects the completion SM> element from there, and most other keys just exit the mode. Sounds good. For usability, it may be better to lock users into the mode until they press `RET' or `C-g' or `ESC' (as expected). SM> The main issue is then to figure out how/when to switch to this SM> new mode. E.g. when the user hits `up' right after the *Completions* SM> buffer got displayed/updated? Maybe the trigger should be another `TAB'? That's what I would press, intuitively. Do you think this can realistically happen for 24.4? I would be excited to help test and give feedback, and maybe even help with the code. Ted