From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Backward completions (was: Vertical completions) Date: Wed, 18 Nov 2009 11:50:49 -0800 (PST) Message-ID: <200911181950.nAIJonix010387@godzilla.ics.uci.edu> References: <61C01A08-8FB6-4908-B9F1-B9F1CE3E3D92@gmail.com> <20091111212658.GD12012@headley> <87fx8kjosa.fsf_-_@mail.jurta.org> <7b501d5c0911120209x7c8f493fm68fadef6f1311206@mail.gmail.com> <87bpj16pkh.fsf@mail.jurta.org> <87tywsz9lb.fsf_-_@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258573967 12378 80.91.229.12 (18 Nov 2009 19:52:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 19:52:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 20:52:39 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAqZz-0004Ay-J7 for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 20:52:39 +0100 Original-Received: from localhost ([127.0.0.1]:57619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAqZy-0006K4-Ou for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 14:52:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAqZt-0006JC-S5 for emacs-devel@gnu.org; Wed, 18 Nov 2009 14:52:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAqZp-0006Fo-8B for emacs-devel@gnu.org; Wed, 18 Nov 2009 14:52:33 -0500 Original-Received: from [199.232.76.173] (port=51883 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAqZo-0006Fl-W8 for emacs-devel@gnu.org; Wed, 18 Nov 2009 14:52:29 -0500 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]:59865) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NAqZo-0006N8-GT for emacs-devel@gnu.org; Wed, 18 Nov 2009 14:52:28 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nAIJonBW008836 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 11:50:50 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAIJonix010387; Wed, 18 Nov 2009 11:50:49 -0800 (PST) In-Reply-To: <87tywsz9lb.fsf_-_@mail.jurta.org> (Juri Linkov's message of "Wed, 18 Nov 2009 11:47:12 +0200") Original-Lines: 48 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAIJonBW008836 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117215 Archived-At: Juri Linkov writes: > >>> It's easier to skim through a list when completions are sorted > >>> vertically in columns down the screen. > >> > >> If it's not too problematic to implement, I'm all for the change (or > >> rather an option to have it). > > > > Not problematic at all. Below is a small patch that implements > > a new option for vertical completions with the default to > > traditional horizontal completions, of course. > > Scrolling the *Completions* buffer a full screen with the key > is convenient to find a desirable item in a long list. > > However, typing the key doesn't reverse the scrolling > direction like this key does in other places in Emacs. So to return to > the previous screen requires scrolling to the end of the *Completions* > buffer, wrapping to the beginning and scrolling forward from the > beginning, looking carefully to not miss the previous screen again. > > The following patch binds to `minibuffer-complete-backward' > that is an alias of `minibuffer-complete'. But maybe code in > `minibuffer-complete' is so small, so it could be copied to a new > function `minibuffer-complete-backward' (with small modifications) > instead of creating an alias? IMHO would be nice to have here. Maybe when looking at this problem people want to look that the approach in search-completions.el (that I've been using for a while): use C-s to move to the *Completions* buffer and do an incremental search there. Not perfect, but it might be a useful source of inspiration. The package is this: ;; search-completions ;; Description: runs isearch in *Completions* buffer, and returns the ;; completion point is on when the isearch terminates. ;; Narrows completions interactively with regexp matches. ;; Author: Radey Shouman ;; File: search-completions.el ;; $modified: Fri Mar 25 15:09:03 1994 by rshouman $ ;; ;; Modified 2003-04-10: lawrence mitchell to work with ;; Emacs 21. ;;