From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46781: read-file-name-completion-ignore-case: who would still be looking for m when they typed M? Date: Fri, 26 Feb 2021 08:46:29 +0200 Message-ID: <83sg5jqqbe.fsf@gnu.org> References: <87y2fc2gvf.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15027"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46781@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 26 07:47:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFWuA-0003jh-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 07:47:14 +0100 Original-Received: from localhost ([::1]:38140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFWu9-00021S-4P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Feb 2021 01:47:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFWty-00021K-1D for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 01:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFWtx-0000WQ-Pk for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 01:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFWtx-0001g4-NH for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2021 01:47: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: Fri, 26 Feb 2021 06:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46781 X-GNU-PR-Package: emacs Original-Received: via spool by 46781-submit@debbugs.gnu.org id=B46781.16143220126430 (code B ref 46781); Fri, 26 Feb 2021 06:47:01 +0000 Original-Received: (at 46781) by debbugs.gnu.org; 26 Feb 2021 06:46:52 +0000 Original-Received: from localhost ([127.0.0.1]:40142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFWtn-0001fe-Vw for submit@debbugs.gnu.org; Fri, 26 Feb 2021 01:46:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFWtj-0001fN-IW for 46781@debbugs.gnu.org; Fri, 26 Feb 2021 01:46:50 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42887) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFWte-0000LN-7t; Fri, 26 Feb 2021 01:46:42 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4678 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lFWtd-0007Nh-Lq; Fri, 26 Feb 2021 01:46:42 -0500 In-Reply-To: <87y2fc2gvf.5.fsf@jidanni.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200832 Archived-At: > From: 積丹尼 Dan Jacobson > > Date: Fri, 26 Feb 2021 01:32:04 +0800 > > Today let's talk about > read-file-name-completion-ignore-case . > (info "(emacs) Completion Options") > > Well just like for search, if we type "m" we probably are looking for > both "M" and "m", but if we go through all the trouble of holding down > the SHIFT button to type "M" then we certainly are only looking for "M" > and would be out of our mind to also be looking for "m". (Or "into pain, > a pain freak.") Therefore read-file-name-completion-ignore-case needs > more options than just t and nil. > > E.g., I have Makefile and murmurfile. Well if I set > read-file-name-completion-ignore-case to nil and type M TAB then of course I > am only wanting to complete Makefile. Did you actually see what happens when you set this variable non-nil and try this? If not, please do; if you did, and the result was not what you expected, please show the details: what you types, which files are there on disk, and what completion candidates were suggested. Because AFAIK Emacs already does what you want it to do in these cases, without needing any additional values for this option.