From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: icomplete-mode vs. iswitchb Date: Wed, 04 Dec 2013 22:32:13 +0100 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 1386192760 5594 80.91.229.3 (4 Dec 2013 21:32:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2013 21:32:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 04 22:32:44 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 1VoK3n-0003Ru-JR for ged-emacs-devel@m.gmane.org; Wed, 04 Dec 2013 22:32:43 +0100 Original-Received: from localhost ([::1]:50427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoK3n-0003JK-2b for ged-emacs-devel@m.gmane.org; Wed, 04 Dec 2013 16:32:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoK3e-0003J9-Tl for emacs-devel@gnu.org; Wed, 04 Dec 2013 16:32:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoK3Z-0001ex-6I for emacs-devel@gnu.org; Wed, 04 Dec 2013 16:32:34 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoK3Z-0001ea-09 for emacs-devel@gnu.org; Wed, 04 Dec 2013 16:32:29 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VoK3W-0003H1-T7 for emacs-devel@gnu.org; Wed, 04 Dec 2013 22:32:26 +0100 Original-Received: from 178-83-163-103.dynamic.hispeed.ch ([178.83.163.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Dec 2013 22:32:26 +0100 Original-Received: from alex by 178-83-163-103.dynamic.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Dec 2013 22:32:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 178-83-163-103.dynamic.hispeed.ch User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:t5PxjXNhXGHNuaOzfUe5V4vW7Y0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:166093 Archived-At: Stefan Monnier writes: > Iswitchb is marked obsolete in the trunk: you can get the same > functionality with icomplete-mode. How does one achieve that? When I tried icomplete-mode, I was unable to figure out how to do that. (progn (iswitchb-mode 0) (icomplete-mode 1) (get-buffer-create "mytesta") (get-buffer-create "mytestb") (get-buffer-create "yourtesta") (get-buffer-create "yourtestb")) 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*. TAB gets me a *Completion* buffer at which point I need to read all of them, look for the bold characters, pick the right one (a), find the key on the keyboard, press that, and even worse, hit C-a and type additional characters (my) at the beginingg of the string in order to switch to mytesta. 2. How to quickly rotate through the list? I want to type t e s t C-s C-s C-s or equivalent to pick the third item on the list. With icomplete-mode I feel like trying M-p, M-n, , , , ... A generic completion should also sort the entry by "most recently used" and I'm not sure how icomplete can do this. iswitchb-mode still feels a lot more useful to me. I'm back to using iswitchb-mode... (progn (iswitchb-mode 1) (icomplete-mode 0))