From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#11339: 24.1.50; read-{buffer,file-name}-completion-ignore-case fails on non-ascii Date: Fri, 01 Nov 2019 23:37:54 +0100 Message-ID: <87o8xvz0hp.fsf@gmx.net> References: <87ehrbyg8t.fsf@escher.home> <87lfszxtcl.fsf@marxist.se> <83bltvl55x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="168451"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 11339@debbugs.gnu.org, Stefan Kangas To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 23:39:37 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 1iQfZw-000hjE-Nv for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 23:39:36 +0100 Original-Received: from localhost ([::1]:43434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQfZu-0004vG-OO for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 18:39:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44684) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQfZQ-0004v0-3P for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 18:39:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQfZO-0003Ra-JA for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 18:39:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQfZN-0003QQ-UY for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 18:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQfZN-0002ya-P5 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 18:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 22:39: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.157264789611370 (code B ref 11339); Fri, 01 Nov 2019 22:39:01 +0000 Original-Received: (at 11339) by debbugs.gnu.org; 1 Nov 2019 22:38:16 +0000 Original-Received: from localhost ([127.0.0.1]:57434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQfYe-0002xJ-8t for submit@debbugs.gnu.org; Fri, 01 Nov 2019 18:38:16 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:51365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQfYY-0002wx-FX for 11339@debbugs.gnu.org; Fri, 01 Nov 2019 18:38:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1572647880; bh=6BqFhv1U6Ey+fkbwSvOAesagkE5wdWA2ZgzoWaY+uQI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=lgsCJmzpVdOcLEmk8YBprOKhrzIBaJ9f5jij8Q2++QbSezk6bJQYXuE6Ax1mIvHfC A+8aTtPgErG5Op2hA+8APhPbOIG0BFy3zRAQOTVm3eEujSUrGtTg5q3Pf72qUX37Ep dz9ao8rOrqCzVALHueaHHl/3MBaJ0TCLnfm4lyYg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-lfs84 ([188.101.25.183]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MQMuR-1ieC4H1Knh-00MKSP; Fri, 01 Nov 2019 23:38:00 +0100 In-Reply-To: <83bltvl55x.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 01 Nov 2019 22:20:42 +0200") X-Provags-ID: V03:K1:rlF7kkMcp3fE80xgVAyefNbM1VzNILptHuYUsSE8ysmtaOAqh7y X79cC4Lnxoctmwa6tzWQmgDKf+0ljPXserXMLaIF44YZrb+gy6L/XH2BRbl0JLgx7gm6xyU j7NCo71xgf2hqlnCo21QmW0iMkjE+9uEbBcsQjaHmE+oXKZzP4gOxMdoWWKzFBYJmao0g69 M+M3T5aXCyyHuU0M8a6hQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:n85R7p8VLCw=:+YQg1j7Tuvhd2kxq0rV+oR UTGgvzJTSSSfuHQe0coIrECbbOh2dkEWwWxJwH5817ysZPaPMacl2MKeTdlJ2PlRrmZ7zi9Hb UT/VY6nGByEDRGQ2GBSF6zOOFTi+riwwAMIbTktwsJ3VKu120ditufXd+yp9yNdwxQYLENHa5 Jn+OuQfLQGF0oiuQ03AsL3qtuDj/QF9IgTJYzd6Vv9NLa3DQ8B0nwUs977VTRDhGMDs4XZ2ec lgcfSVgh4qr1ngMIy5wQQBPgKWDIdebqnD29OmGJPMsz44i3UkoePzMSKjem8qrl6dILKRjp0 lyj2kXFGIWWb9hAiNhftYmx06oOrI6f6oukO/3u9ZFN/ZsN1iTIA2Lj13tp9SWcLcGC0ga6LO vfgKt+qLTCJz0KfaMhZUHlDoxue9OTkgs5AwnPtmXewY3c2DMVSPjPffdldQfhc5gA5mJmhj2 S0jzI9DRrzv7tVDh3DVwzFBuwtRvcZzdhYZd+dHexBnsw5G29UB2TNMmTbLV5mWA7p6LZH91p uzMSiTwHvBrkFLEeIKMgjEtYLdFkDRdrxga4X0kdMF3oQVMLnqIMom/93jiJHerONLhg0yaCF XNtlFiwjUyv7fnI99m8damIi/IbgQsL/vQDm5Ie3BeSbYxuuFe6dqtBVHYIIe1j28MWQbtj/Y IhjYE2dpHBwbT+7UQrMHcWC+QAY5sOcyb7Ut+79gNZj/oGd0g8aSRgQhrMmkq82lpn/cqflj6 T4pGLW2xvWqPY13g4iT+wGc13jRrEBByFMxbrYzu5py8e4upVteZCSS8Gce0za22902XYxug 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:170699 Archived-At: On Fri, 01 Nov 2019 22:20:42 +0200 Eli Zaretskii wrote: >> From: Stefan Kangas >> Date: Fri, 01 Nov 2019 20:57:30 +0100 >> Cc: 11339@debbugs.gnu.org >>=20 >> > 0. emacs -Q >> > 1. M-x customize-option RET read-buffer-completion-ignore-case RET. >> > Toggle to "on", set for the current session. >> > M-x customize-option RET read-file-name-completion-ignore-case RET. >> > Toggle to "on", set for the current session. >> > 2. C-x C-f b TAB =3D> *Completions* buffer contains, as expected: bla = b=C3=84h >> > b=C3=A4h. >> > 3. Visit files `bla', `b=C3=A4h' and `b=C3=84h', switch to buffer *scr= atch* and >> > repeat step 2, replacing `C-x C-f' with `C-x b' =3D> same results. >> > 4. C-x C-f b=C3=A4 TAB =3D> Emacs completes the input to "b=C3=A4h".= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> > 5. TAB =3D> Emacs incorrectly reports: "[Sole completion]".=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> > 6. C-x C-f b=C3=84 TAB =3D> Emacs completes the input to "b=C3=84h". >> > 7. TAB =3D> Emacs incorrectly reports: "[Sole completion]".=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 >> > 8. Switch to buffer *scratch* and repeat step 4-7, replacing `C-x C-f' >> > with `C-x b' =3D> same results. >>=20 >> I can reproduce this on current master using the simpler recipe: >>=20 >> 0. emacs -Q >> 1. Evaluate (setq read-buffer-completion-ignore-case t) >> 2. C-x b b=C3=A4h RET >> 3. C-x b b=C3=84h RET >> 4. C-x b b=C3=A4 TAB TAB >>=20 >> Result: Completes to "b=C3=A4h" on first TAB, and on second TAB [Sole >> completion] is displayed in minibuffer. >>=20 >> Expected result: The "*Completion*" buffer is displayed. > > I think your expectations are incorrect in this case. Try having > buffer names that differ (not in letter-case) in the 3rd letter. > > What I see here is entirely expected and reasonable. I see no bug. I think the expectation I had about the variables read-{buffer,file-name}-completion-ignore-case was that they allow getting information with less effort, in that by typing either a lower or an upper case character, you would see names that have either or both cases. And that is apparently what I (thought I) had experienced with ASCII characters but not with non-ASCII characters, which I assume is what prompted my OP. Unfortunately, the recipe in my OP did not include the `bah' and `bAh' cases as a sanity check, and now I find the same behavior with them as reported above for the non-ASCII cases. So it seems either the handling of the ASCII cases has changed since my OP, or I was mistaken at the time in thinking there was a difference. I also followed up my OP more than a year later, reporting that the bug still existed and adding a further observation (https://lists.gnu.org/archive/html/bug-gnu-emacs/2013-07/msg00340.html). And regarding the latter, on recent master that does indeed show a difference between ASCII and non-ASCII characters: 0. touch /tmp/{bah,bAG,b=C3=A4h,b=C3=84g} 1. emacs-master -Q --eval '(setq read-buffer-completion-ignore-case t read-= file-name-completion-ignore-case t)' /tmp/{bah,bAg,b=C3=A4h,b=C3=84g} 2. C-x b *scratch* 3a. C-x b ba TAB =3D> *Completions* pops up showing `bAg' and `bah' 3b. C-x b bA TAB =3D> *Completions* pops up showing `bAg' and `bah' 4a. C-g C-x b b=C3=A4 TAB =3D> *Completions* pops up showing `b=C3=84g' and `b=C3=A4h' 4b. C-g C-x b b=C3=84 TAB =3D> *Completions* pops up showing `b=C3=84g' and `b=C3=A4h' 5a. C-g C-x C-f /tmp/ba TAB =3D> *Completions* pops up showing `bAg' and `bah' 5b. C-g C-x C-f /tmp/bA TAB =3D> *Completions* pops up showing `bAg' and `bah' 6a. C-g C-x C-f /tmp/b=C3=A4 TAB =3D> completes to /tmp/b=C3=A4h 6a. C-g C-x C-f /tmp/b=C3=84 TAB =3D> completes to /tmp/b=C3=84g Steve Berman