From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11339: 24.1.50; read-{buffer,file-name}-completion-ignore-case fails on non-ascii Date: Mon, 04 Nov 2019 19:12:03 +0200 Message-ID: <83v9rzh8gs.fsf@gnu.org> References: <87ehrbyg8t.fsf@escher.home> <87lfszxtcl.fsf@marxist.se> <83bltvl55x.fsf@gnu.org> <87o8xvz0hp.fsf@gmx.net> <83tv7mkb0l.fsf@gnu.org> <87d0ea9uxg.fsf@gmx.net> <83eeyphr5q.fsf@gnu.org> <87lfsvyd4i.fsf@gmx.net> <87h83jy5kp.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230287"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 11339@debbugs.gnu.org, stefan@marxist.se To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 18:12:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRftl-000xmF-QU for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 18:12:13 +0100 Original-Received: from localhost ([::1]:35646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRftk-0005Tw-Lr for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 12:12:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59172) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRftc-0005Tn-RP for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 12:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRfta-0000WK-Nw for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 12:12:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRftZ-0000WE-VP for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 12:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRftZ-0002jO-OA for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 12:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2019 17:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11339 X-GNU-PR-Package: emacs Original-Received: via spool by 11339-submit@debbugs.gnu.org id=B11339.157288752110491 (code B ref 11339); Mon, 04 Nov 2019 17:12:01 +0000 Original-Received: (at 11339) by debbugs.gnu.org; 4 Nov 2019 17:12:01 +0000 Original-Received: from localhost ([127.0.0.1]:37453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRftY-0002j9-KP for submit@debbugs.gnu.org; Mon, 04 Nov 2019 12:12:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRftX-0002it-CV for 11339@debbugs.gnu.org; Mon, 04 Nov 2019 12:11:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iRftR-0000VV-0c; Mon, 04 Nov 2019 12:11:53 -0500 Original-Received: from [176.228.60.248] (port=2340 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iRftQ-0004MN-Af; Mon, 04 Nov 2019 12:11:52 -0500 In-reply-to: <87h83jy5kp.fsf@gmx.net> (message from Stephen Berman on Mon, 04 Nov 2019 17:22:30 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:170947 Archived-At: > From: Stephen Berman > Cc: stefan@marxist.se, 11339@debbugs.gnu.org > Date: Mon, 04 Nov 2019 17:22:30 +0100 > > After your fix: > > 1. $ emacs-master -Q --eval '(setq read-buffer-completion-ignore-case tread-file-name-completion-ignore-case t)' /tmp/{bah,bAh,bäh,bÄh} > (*Buffer List* show the buffers bah,bAh,bäh,bÄh) > 2. C-x b *scratch* > 3a. C-x b ba TAB > => completes to bah and after TAB displays [Sole completion] > 3b. C-g C-x b bA TAB > => completes to bAh and after TAB displays [Sole completion] > 4a. C-g C-x b bä TAB > => completes to bäh and after TAB displays [Sole completion] > 4b. C-g C-x b bÄ TAB > => completes to bÄh and after TAB displays [Sole completion] > 5a. C-g C-x C-f /tmp/ba TAB > => completes to bah and after TAB displays [Complete, but not unique] > and *Completions* pops up showing `bAh' and `bah' > 5b. C-g C-x C-f /tmp/bA TAB > => completes to bAh and after TAB displays [Complete, but not unique] > and *Completions* pops up showing `bAh' and `bah' > 6a. C-g C-x C-f /tmp/bä TAB > => completes to /tmp/bäh and after TAB displays [Complete, but not unique] > and *Completions* pops up showing `bAh' and `bah' > 6a. C-g C-x C-f /tmp/bÄ TAB > => completes to /tmp/bÄh and after TAB displays [Complete, but not unique] > and *Completions* pops up showing `bAh' and `bah' > > So, before your fix file name completion involving non-ASCII strings > behaved the same as buffer name completion involving both ASCII-only and > non-ASCII strings, but file name completion involving ASCII-only strings > differed. Now, after your fix, file name completion involving non-ASCII > strings works the same as file name completion involving ASCII-only > strings did before your fix and still does after, but all the cases of > file name completion differ from the corresponding cases of buffer name > completion. I would prefer buffer name completion to work the way file > name completion uniformly works after your fix. "You are in a maze of twisty little passages, all alike." (I'm confused by a dozen of similar examples which don't say which result is deemed to be correct and which isn't.) Previously, you said that buffer-name completion works correctly, so I never looked at that (which explains why there's no change in that behavior before and after my changes). The changes I made are in code that is used only for completing file names, which again explains why completion of buffer names didn't change. Now you are saying that buffer-name completion works incorrectly? Or are you saying something else? I'd like to be sure what is it that you consider in the need of fixing, and why. Thanks.