From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Emacs completion matches selection UI Date: Thu, 21 Nov 2013 02:45:42 +0200 Organization: JURTA Message-ID: <871u2aa7v3.fsf@mail.jurta.org> References: <87fvqtg02v.fsf@flea.lifelogs.com> <877gc5fm30.fsf@flea.lifelogs.com> <87bo1h6wvk.fsf@mail.jurta.org> <87iovnkiip.fsf@mail.jurta.org> <528C6607.9090903@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384996296 28725 80.91.229.3 (21 Nov 2013 01:11:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 01:11:36 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , Tom To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 21 02:11:41 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 1VjInz-0001I0-Ge for ged-emacs-devel@m.gmane.org; Thu, 21 Nov 2013 02:11:39 +0100 Original-Received: from localhost ([::1]:57902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjIny-0004Sv-Sb for ged-emacs-devel@m.gmane.org; Wed, 20 Nov 2013 20:11:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjInq-0004Rj-0j for emacs-devel@gnu.org; Wed, 20 Nov 2013 20:11:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjInk-0006ai-0s for emacs-devel@gnu.org; Wed, 20 Nov 2013 20:11:29 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:44486 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjInj-0006a2-RD for emacs-devel@gnu.org; Wed, 20 Nov 2013 20:11:23 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2BA8D258B9E936; Wed, 20 Nov 2013 17:11:20 -0800 (PST) In-Reply-To: <528C6607.9090903@gmx.at> (martin rudalics's message of "Wed, 20 Nov 2013 08:34:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.218.105 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:165462 Archived-At: >> The bigger problem is in which order to sort completion candidates. >> When navigating from the minibuffer to the *Completions* buffer >> `up' should select the first candidate which is more natural to put >> at the bottom of the *Completions* buffer sorted in reverse order. > > We could enter/leave the selection list at the top and do everything > else exactly like in browser but for the fact that the list is drawn > above the minibuffer. To display the minibuffer completions near the minibuffer I tried this customization: (add-to-list 'display-buffer-alist '("\\*Completions\\*" display-buffer-at-bottom (nil))) but it works only in one configuration with two horizontally split windows. I expected that this action was intended to display the buffer always above the minibuffer. OTOH, for in-buffer completions it seems a better action is (add-to-list 'display-buffer-alist '("\\*Completions\\*" display-buffer-below-selected (nil))) that could work like `dired-mark-pop-up' to display completions near point as close to it as possible. Maybe adding (window-height . fit-window-to-buffer) will make it better formatted too. This will imitate overlay-based auto-completions by using the standard buffer.