From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs completion matches selection UI Date: Mon, 16 Dec 2013 13:35:47 -0500 Message-ID: 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> <878uwi8t3r.fsf@mail.jurta.org> <83ob5ee7ow.fsf@gnu.org> <87d2ltl2if.fsf@mail.jurta.org> <8338moevm3.fsf@gnu.org> <8761rkaa5e.fsf@flea.lifelogs.com> <87txf0390n.fsf@flea.lifelogs.com> <87y53komex.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387218967 26674 80.91.229.3 (16 Dec 2013 18:36:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Dec 2013 18:36:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 16 19:36:12 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 1Vsd1W-0007SG-09 for ged-emacs-devel@m.gmane.org; Mon, 16 Dec 2013 19:36:10 +0100 Original-Received: from localhost ([::1]:57662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsd1V-0003FB-Fy for ged-emacs-devel@m.gmane.org; Mon, 16 Dec 2013 13:36:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsd1L-0003Et-La for emacs-devel@gnu.org; Mon, 16 Dec 2013 13:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vsd1D-0005us-65 for emacs-devel@gnu.org; Mon, 16 Dec 2013 13:35:59 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsd1C-0005tx-VD for emacs-devel@gnu.org; Mon, 16 Dec 2013 13:35:51 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id rBGIZlFi009316; Mon, 16 Dec 2013 13:35:49 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E7327AE2BE; Mon, 16 Dec 2013 13:35:47 -0500 (EST) In-Reply-To: <87y53komex.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Mon, 16 Dec 2013 10:17:26 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4794=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4794> : inlines <329> : streams <1091796> : uri <1625913> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:166499 Archived-At: > ;; It is difficult to know when to exit completion-in-region-mode (i.e. hide > ;; the *Completions*). [...] > If there was a special popup to show a list of items, [...], it would > abstract these difficulties and cut some nasty code out of > minibuffer.el. No, it wouldn't. The problem needs to be solved either way. `company-mode' solves this problem not by popping up a special GUI element, but by defining which operations can be performed while this element is displayed, and which operations cause the element to disappear. And completion-in-region-mode does the same, tho using the *Completions* buffer rather than a special GUI element, and making different choices about which operations can be performed while the completions are displayed and which operations make the completions disappear. > For the UI case of "I'm in the minibuffer and want to complete > something" I would rather wait for the general list popup to be > available with `widget-choose' than add the special down/up keybindings > that we discussed. Again, this has nothing to do with whether the list is displayed in a *Completions* buffer or on a shoestring. The questions are "when should the list be displayed", and after that, "when should we enter the special mode where the user can navigate in this list". For company-mode, the second question is answered by "immediately" and the first is answered by "after typing the first N chars of a completion candidate" (IIRC). > I think the change is too risky for the short time we have this week. I'm not sure which change you're thinking of, but I probably agree. Stefan