From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tobias Gerdin Newsgroups: gmane.emacs.help Subject: Re: partial completion and switch-to-buffer Date: Mon, 24 Aug 2009 17:28:11 +0200 Message-ID: <873a7hgrjo.fsf@opera.com> References: <335966bb-f6b4-4f85-b84d-11e769de1bb4@x6g2000prc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251218762 26356 80.91.229.12 (25 Aug 2009 16:46:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2009 16:46:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 25 18:45:55 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mfz9d-00061X-BZ for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Aug 2009 18:45:55 +0200 Original-Received: from localhost ([127.0.0.1]:52864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mfz9b-00075b-W9 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Aug 2009 12:45:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfbZT-00050e-Gv for help-gnu-emacs@gnu.org; Mon, 24 Aug 2009 11:34:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfbZO-0004v8-AN for help-gnu-emacs@gnu.org; Mon, 24 Aug 2009 11:34:58 -0400 Original-Received: from [199.232.76.173] (port=36949 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfbZO-0004uv-36 for help-gnu-emacs@gnu.org; Mon, 24 Aug 2009 11:34:54 -0400 Original-Received: from sam.opera.com ([213.236.208.81]:35113 helo=smtp.opera.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfbSo-00055U-2E for help-gnu-emacs@gnu.org; Mon, 24 Aug 2009 11:28:06 -0400 Original-Received: from tger-desktop (sgw-oslo.opera.com [213.236.208.47]) (authenticated bits=0) by smtp.opera.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id n7OFRsw3031403 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 24 Aug 2009 15:27:55 GMT Original-Received: from tger by tger-desktop with local (Exim 4.69) (envelope-from ) id 1MfbSt-00024U-Rt; Mon, 24 Aug 2009 17:28:11 +0200 In-Reply-To: <335966bb-f6b4-4f85-b84d-11e769de1bb4@x6g2000prc.googlegroups.com> (Xah Lee's message of "Sat, 22 Aug 2009 07:03:42 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-Mailman-Approved-At: Tue, 25 Aug 2009 12:37:09 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67519 Archived-At: Xah Lee writes: > On Aug 21, 7:20 am, Tobias Gerdin wrote: >> Greetings, >> >> With the advent of partial-completion-mode in Emacs 23, I was wondering >> if there isn't any way to use this mechanism with switch-to-buffer ("C-x= b")? >> >> Switch-to-buffer still seems to do only prefix-matching. >> >> I am aware of iswitch-mode and ido-mode, which does substring matching >> (which is basically what I want), but find them too obtrusive. I do not >> want any completion to be done unless I say so (by pressing ). >> >> I'm using Emacs CVS from 2009-07-30 (i.e. pretty much 23.1). > > so far as my studie goes, the partial completition does not always > works, perhaps by intention. However, wildcard works. So, just put a > wildcard =93*=94 in front first. Thank you. I thought I tried that and found that it didn't work but it did. However, I would really like not need to put the star there, since it's a shifted char on my layout and really slows things down. Would have been nice if a partial match was attempted directly. Since the list of buffers is available in memory even a partial search should be very quick. I think I will just cook up something simple by myself, but I find it odd that a stock Emacs doesn't do it this way. -Tobias