From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: How to select one of the buffers that match a substring in "switch-to-buffer"? Date: Mon, 08 Jun 2015 20:59:03 +0200 Message-ID: <87fv62kow8.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1433790166 10600 80.91.229.3 (8 Jun 2015 19:02:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2015 19:02:46 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "KARR\, DAVID" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 08 21:02:36 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Z22Ja-0002gJ-AS for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 21:02:30 +0200 Original-Received: from localhost ([::1]:59807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z22JZ-0008L4-N9 for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 15:02:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z22GM-0003Bp-ES for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 14:59:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z22GJ-0001la-8r for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 14:59:10 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z22GJ-0001lT-5X for help-gnu-emacs@gnu.org; Mon, 08 Jun 2015 14:59:07 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8AADB210BB for ; Mon, 8 Jun 2015 14:59:06 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 08 Jun 2015 14:59:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=bFbkWOdb9V0hKMi bx+xFu+HrvnQ=; b=oeLxMsFI56nN2vgtsTOboL4zEFZqvvkX2RSiTTBzKdd1aaP mz0uSi3zpWg3nZvkz9LeQJn1IdMhLpRk6GE4msPmxGiz6n+q62pOqbZl0iaOaMKA XzO5PYIvHfROIHuasnkwY78+CU0taet+tq4QMcGc84/o8Jd50RqguGEugZxk= X-Sasl-enc: G0sdZTaV3DG/mT3ic+PyKHuly+tH/wNqnvVRcumhRCgW 1433789946 Original-Received: from thinkpad-t440p (unknown [2.162.161.54]) by mail.messagingengine.com (Postfix) with ESMTPA id 977AB680095; Mon, 8 Jun 2015 14:59:05 -0400 (EDT) Mail-Followup-To: "KARR\, DAVID" , Drew Adams , "help-gnu-emacs\@gnu.org" In-Reply-To: (DAVID KARR's message of "Mon, 8 Jun 2015 18:39:15 +0000") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104851 Archived-At: "KARR, DAVID" writes: >> `icomplete-mode' is the official replacement for `iswitchb', AFAIK. >>=20 >> Icicles completion will also give you what you want. Likewise, >> `ido-mode'. Also, in the scenario you described (vanilla `C-x b'), >> you can type some more chars to continue completing (with TAB). > > I already have icomplete enabled. It's useless if you've typed a > substring that doesn't represent the start of the file name. But it should work for buffers, no? If so, the reason why it doesn't work for file name completion is because there, emacs doesn't use substring completion. But you can configure it to do so. ,----[ C-h v completion-category-overrides RET ] | completion-category-overrides is a variable defined in =E2=80=98minibuffe= r.el=E2=80=99. | Its value is nil. |=20 | Documentation: | List of category-specific user overrides for completion styles. | Each override has the shape (CATEGORY . ALIST) where ALIST is | an association list that can specify properties such as: | - =E2=80=98styles=E2=80=99: the list of =E2=80=98completion-styles=E2=80= =99 to use for that category. | - =E2=80=98cycle=E2=80=99: the =E2=80=98completion-cycle-threshold=E2=80= =99 to use for that category. | Categories are symbols such as =E2=80=98buffer=E2=80=99 and =E2=80=98file= =E2=80=99, used when | completing buffer and file names, respectively. | This overrides the defaults specified in =E2=80=98completion-category-def= aults=E2=80=99. `---- Bye, Tassilo