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: icomplete-mode vs. iswitchb Date: Wed, 04 Dec 2013 21:05:10 -0500 Message-ID: References: <8761ra7uq3.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386209139 16271 80.91.229.3 (5 Dec 2013 02:05:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2013 02:05:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alex Schroeder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 05 03:05: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 1VoOJz-0001rz-C2 for ged-emacs-devel@m.gmane.org; Thu, 05 Dec 2013 03:05:43 +0100 Original-Received: from localhost ([::1]:51370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoOJy-0001uq-CH for ged-emacs-devel@m.gmane.org; Wed, 04 Dec 2013 21:05:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoOJj-0001tB-Nb for emacs-devel@gnu.org; Wed, 04 Dec 2013 21:05:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoOJc-0005si-Df for emacs-devel@gnu.org; Wed, 04 Dec 2013 21:05:27 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:64491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoOJU-0005sE-Ij; Wed, 04 Dec 2013 21:05:12 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxL6g/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFFFxL6g/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="41172938" Original-Received: from 69-196-190-160.dsl.teksavvy.com (HELO pastel.home) ([69.196.190.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Dec 2013 21:05:11 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 79E3660F5D; Wed, 4 Dec 2013 21:05:10 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Wed, 04 Dec 2013 20:30:14 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:166102 Archived-At: >> 1. How to pick the first item on the list without typing a lot? I want >> to type a substring RET to pick the most recent buffer. With >> icomplete-mode I type t e s t TAB and get test*. > Why type TAB? Oh, I think I understand. You should hit C-j to select the first item. If you prefer TAB, then do (define-key icomplete-minibuffer-map [?\t] 'minibuffer-force-complete-and-exit) >> 2. How to quickly rotate through the list? I want to type t e s t C-s > C-. and C-, (the logic behind those is that , and . are just below < > and > in the US keyboard). Of course, you can also use C-s and C-r with something like: (define-key icomplete-minibuffer-map [?\C-s] 'icomplete-forward-completions) (define-key icomplete-minibuffer-map [?\C-r] 'icomplete-backward-completions) -- Stefan