From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8197: 24.0.50; completion-substring-try-completion bug ? Date: Fri, 07 Oct 2011 08:53:27 -0400 Message-ID: References: <871v2in5cm.fsf@fh-trier.de> <7s62k18se6.fsf@fencepost.gnu.org> <20111007063041.M3161@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317992039 6609 80.91.229.12 (7 Oct 2011 12:53:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 12:53:59 +0000 (UTC) Cc: 8197@debbugs.gnu.org To: "Andreas Politz\, INF|INF-I" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 14:53:53 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 1RC9w1-0008Ma-9F for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 14:53:53 +0200 Original-Received: from localhost ([::1]:37883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC9w0-0007nz-J3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 08:53:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC9vx-0007nj-8e for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 08:53:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC9vw-0002RW-2J for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 08:53:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC9vv-0002RS-Vr for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 08:53:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RC9w9-0006O1-PT for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 08:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2011 12:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8197 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8197-submit@debbugs.gnu.org id=B8197.131799203124534 (code B ref 8197); Fri, 07 Oct 2011 12:54:01 +0000 Original-Received: (at 8197) by debbugs.gnu.org; 7 Oct 2011 12:53:51 +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 1RC9vy-0006Nd-9y for submit@debbugs.gnu.org; Fri, 07 Oct 2011 08:53:51 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RC9vv-0006NR-Hk for 8197@debbugs.gnu.org; Fri, 07 Oct 2011 08:53:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALD1jk7O+JxS/2dsb2JhbABEqDyBBoFTAQEEAVYjBQsLNBIUGA0kiBG4bocxBKEOhEU X-IronPort-AV: E=Sophos;i="4.68,502,1312171200"; d="scan'208";a="140241290" Original-Received: from 206-248-156-82.dsl.teksavvy.com (HELO pastel.home) ([206.248.156.82]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 07 Oct 2011 08:53:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4F417592D6; Fri, 7 Oct 2011 08:53:27 -0400 (EDT) In-Reply-To: <20111007063041.M3161@fh-trier.de> (Andreas Politz's message of "Fri, 7 Oct 2011 08:42:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Oct 2011 08:54:01 -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:52371 Archived-At: >> > (completion-substring-try-completion >> > "foo" '("bar-foo" "baz-foo") nil 2) >> > => ("ba-foo" . 6) >> > I would expect this to return ("ba-foo" . 2) . >> Now it returns ("-foo" . 4). >> Is this progress? I think this is the correct answer, yes. > That was a while ago, but in my understanding the function should > return a partial substring completion (matching *ba*-foo* in this case) > and the index of the ambiguous part. No, completion styles should not presume that they are used in conjunction with some other style. "completion-*-try-completion" should return a string which matches (using the same style) the same set of elements. Stefan