unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 46781@debbugs.gnu.org
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	[thread overview]
Message-ID: <83sg5jqqbe.fsf@gnu.org> (raw)
In-Reply-To: <87y2fc2gvf.5.fsf@jidanni.org>

> From: 積丹尼 Dan Jacobson
>  <jidanni@jidanni.org>
> 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.





  reply	other threads:[~2021-02-26  6:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 17:32 bug#46781: read-file-name-completion-ignore-case: who would still be looking for m when they typed M? 積丹尼 Dan Jacobson
2021-02-26  6:46 ` Eli Zaretskii [this message]
2021-02-26  8:55 ` Lars Ingebrigtsen
2021-02-27 23:38   ` bug#46781: read-buffer-completion-ignore-case: " 積丹尼 Dan Jacobson
2021-02-28 13:44     ` Lars Ingebrigtsen
2021-02-28 17:18     ` Eli Zaretskii
2021-03-01  4:08       ` 積丹尼 Dan Jacobson
2021-03-01 12:43         ` Lars Ingebrigtsen
2021-03-07 13:21           ` Tomas Nordin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sg5jqqbe.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=46781@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).