From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#2042: Ido-mode : filtering does not keep ordering Date: Sun, 02 Oct 2011 08:04:30 +0800 Message-ID: References: <6fa54e4e0901250554q1519cba5t83df1577e2cbc132@mail.gmail.com> <8739fch6in.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317513962 3204 80.91.229.12 (2 Oct 2011 00:06:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2011 00:06:02 +0000 (UTC) Cc: Antoine Levitt , 2042@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 02 02:05:54 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RA9Z3-0001lq-CC for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Oct 2011 02:05:53 +0200 Original-Received: from localhost ([::1]:41748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RA9Z2-0002aJ-NM for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2011 20:05:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RA9Yz-0002YH-Jq for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2011 20:05:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RA9Yy-0001pw-Kw for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2011 20:05:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RA9Yy-0001pr-IO for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2011 20:05:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RA9aA-0005iO-Gz for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2011 20:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Oct 2011 00:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 2042-submit@debbugs.gnu.org id=B2042.131751398221922 (code B ref 2042); Sun, 02 Oct 2011 00:07:02 +0000 Original-Received: (at 2042) by debbugs.gnu.org; 2 Oct 2011 00:06:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RA9ZW-0005hX-6f for submit@debbugs.gnu.org; Sat, 01 Oct 2011 20:06:22 -0400 Original-Received: from mail-pz0-f50.google.com ([209.85.210.50]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RA9ZU-0005hQ-Ec for 2042@debbugs.gnu.org; Sat, 01 Oct 2011 20:06:21 -0400 Original-Received: by pzk37 with SMTP id 37so7928840pzk.9 for <2042@debbugs.gnu.org>; Sat, 01 Oct 2011 17:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=1CzbdMXC9ynbW07vGchjaBo+3qIZmYjGoTFr+0750Xg=; b=qT4G6MC2RBjbJmHbpoACszCSfXdvLSKjuctdAJ2z54UGZs1ODmyb8vHxOY1ZoqlkJD +4fS8/p0StQpgnmg3bTsWqUJZUoZNYKF/mzdLF5AMkC2th+UWma5yfnNcMhmOOPUeSzC 8e/clB1UxfuGCL0sskYhxDDkVOGhQrx/KZg2c= Original-Received: by 10.68.54.65 with SMTP id h1mr6375055pbp.11.1317513905234; Sat, 01 Oct 2011 17:05:05 -0700 (PDT) Original-Received: from Victoria.local ([222.77.98.74]) by mx.google.com with ESMTPS id z1sm35474940pbl.5.2011.10.01.17.05.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 01 Oct 2011 17:05:04 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= In-Reply-To: <8739fch6in.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 01 Oct 2011 15:10:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 01 Oct 2011 20:07:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52055 Archived-At: On 2011-10-02 03:10 +0800, Chong Yidong wrote: > Leo writes: > >> I occasionally try iswitch-mode and find its buffer switching much >> more pleasant to use than ido's. The trouble is ido tries to be smart >> in ordering matches. Sadly that gets in the way most of the time. > > Could you explain in words what the existing code tries to do? > > Maybe it's indeed misguided and ought to be taken out, but it would be > good to first figure out what the original intention was. The existing code gives different precedence to different match type: full-matches > suffix matches > prefix matches > remaining matches For example in switching buffers in ido: input: ab Buffer: ab[c]{abcd | abc | xabcd | xabc} now when the user types c, it changes to: Buffer: abc{abc | abcd | xabcd | xabc} Note the different ordering of "abcd" and "abc". Because typing is so much quicker than observing the new order, one usually mis-chooses a match. Thus, the above strategy may break down when the original ordering is meaningful for example, (buffer-list) returns a list in order of recency. Leo