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: C-r and C-s in minibuffer should search completion Date: Sat, 22 Mar 2008 03:17:31 +0200 Organization: JURTA Message-ID: <874pazefc4.fsf@jurta.org> References: <87fxul194g.fsf@jurta.org> <87y78dknge.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206149093 4308 80.91.229.12 (22 Mar 2008 01:24:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 01:24:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 22 02:25:23 2008 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 1JcsU6-0000JZ-GB for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 02:25:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcsTW-0003TC-08 for ged-emacs-devel@m.gmane.org; Fri, 21 Mar 2008 21:24:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcsSq-0003Cz-OS for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:24:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcsSp-0003CV-At for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:24:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcsSp-0003CS-4W for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:24:03 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JcsSp-0005QJ-0a for emacs-devel@gnu.org; Fri, 21 Mar 2008 21:24:03 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JcsSk-000Bi8-Cy; Sat, 22 Mar 2008 03:23:58 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 20 Mar 2008 21:26:51 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 7ffaa6bc246e67c9b1a22e0c753f4a43 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2459 [Mar 21 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 11 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.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:93157 Archived-At: >>> BTW, once this is done, we can revert the recent change to the >>> `read-buffer' that adds all the buffers to the list of defaults. > >> Why? > > Because it's a special case and I'm not convinced it's justified. The intention of adding a list of default values was to allow selecting more than one default value extracted from the context of the command. So after running a command the user can type M-n to see if the first proposed default value is that the user likes. If not, the user can then type M-n again to see the next proposed value and accept it or type M-n to see a few next useful values. However, I agree that putting all buffers pushes this features to the extreme because then the list of defaults is the same as the completion list. But there is one significant difference: the list of defaults is sorted by recency, so switching between several work buffers (more than two) is much easier with `C-x b M-n M-n M-n RET'. OTOH, searching the completion list would be useful in itself independent of searching the history list or the list of defaults because often these three are disjoint sets, and the list of defaults can be presented even when the completion list is empty. > I expect most people who like this will prefer iswitchb anyway. iswitchb radically changes the user interface of the minibuffer, so I highly recommend providing most features of iswitchb to the users who don't like the user interface of iswitchb. -- Juri Linkov http://www.jurta.org/emacs/