From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#4219: 23.1; case insensitive + partial completions Date: Mon, 14 Sep 2009 01:55:24 -0400 Message-ID: <19117.56012.602721.600489@winooski.ccs.neu.edu> References: Reply-To: Eli Barzilay , 4219@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252908500 22253 80.91.229.12 (14 Sep 2009 06:08:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 06:08:20 +0000 (UTC) Cc: 4219@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 14 08:08:13 2009 Return-path: Envelope-to: geb-bug-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 1Mn4jS-0007uk-Db for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 08:08:11 +0200 Original-Received: from localhost ([127.0.0.1]:44621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn4jR-00033G-QJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 02:08:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mn4iW-0002Wt-DC for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 02:07:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mn4iQ-0002T3-E5 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 02:07:11 -0400 Original-Received: from [199.232.76.173] (port=44525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn4iQ-0002Sl-7n for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 02:07:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39798) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mn4iO-0004cP-P4 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 02:07:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E6702R010425; Sun, 13 Sep 2009 23:07:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8E655HX009735; Sun, 13 Sep 2009 23:05:05 -0700 Resent-Date: Sun, 13 Sep 2009 23:05:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Barzilay Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Sep 2009 06:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4219 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4219-submit@emacsbugs.donarmstrong.com id=B4219.12529077267737 (code B ref 4219); Mon, 14 Sep 2009 06:05:05 +0000 Original-Received: (at 4219) by emacsbugs.donarmstrong.com; 14 Sep 2009 05:55:26 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barzilay.org (winooski.ccs.neu.edu [129.10.115.117]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8E5tPN5007734 for <4219@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 22:55:26 -0700 Original-Received: from eli by barzilay.org with local (Exim 4.66) (envelope-from ) id 1Mn4X6-0000uF-Jq; Mon, 14 Sep 2009 01:55:24 -0400 In-Reply-To: X-Mailer: VM 8.0.12 under 23.1.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 14 Sep 2009 02:07:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31078 Archived-At: On Sep 13, Stefan Monnier wrote: > >>>>> "Eli" == Eli Barzilay writes: > > > INSTALL > > install-sh > > > Hit `C-x C-f ins TAB' -- it will be completed to "insTALL". > > I think the patch below will help out. You may still get such > inconsistent results in different parts of a completion > (e.g. completing "fo-ba" against "FOO-BAR" and "foo-bar" may return > "FOO-bar"), but at least the above case should be handled better. I had a hacked version of `PC-do-completion' which worked until v23 came out that did a proper case-insensitive match. In my version I'd never get "FOO-bar" for the above. Would it help to look at it? (It's been a while since I did it, and all I have a single comment at the top of that change saying: "If there are possibility prefixes that match the basestr exactly then replace the basestr part of prefix by the apropriate one". So I'm not sure if this can be helpful or not.) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life!