Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Make find file case insensitive

117 views
Skip to first unread message

Aaron Meurer

unread,
Feb 4, 2012, 6:00:54 PM2/4/12
to help-gn...@gnu.org
Is there a way to make tab completion in find file (C-x C-f) case
insensitive? I'm on Mac OS X with hsf+, so the filesystem is case
insensitive. I didn't find any options in M-x customize for this.

Aaron Meurer

Drew Adams

unread,
Feb 4, 2012, 6:52:17 PM2/4/12
to Aaron Meurer, help-gn...@gnu.org
> Is there a way to make tab completion in find file (C-x C-f) case
> insensitive? I'm on Mac OS X with hsf+, so the filesystem is case
> insensitive. I didn't find any options in M-x customize for this.

It depends on your Emacs version.

Starting with Emacs 22, see option `read-file-name-completion-ignore-case.

But in principle Emacs should do the right thing on your platform, without your
needing to do anything. Consider reporting a bug: `M-x report-emacs-bug',
providing information starting from `emacs -Q' (no init file).


Aaron Meurer

unread,
Feb 5, 2012, 1:54:19 AM2/5/12
to Drew Adams, help-gn...@gnu.org
On Sat, Feb 4, 2012 at 4:52 PM, Drew Adams <drew....@oracle.com> wrote:
>> Is there a way to make tab completion in find file (C-x C-f) case
>> insensitive?  I'm on Mac OS X with hsf+, so the filesystem is case
>> insensitive.  I didn't find any options in M-x customize for this.
>
> It depends on your Emacs version.
>
> Starting with Emacs 22, see option `read-file-name-completion-ignore-case.

Thanks. I don't know why I missed that, because I searched M-x
customize for "case".

>
> But in principle Emacs should do the right thing on your platform, without your
> needing to do anything.  Consider reporting a bug: `M-x report-emacs-bug',
> providing information starting from `emacs -Q' (no init file).
>

I just tried it with -Q, and it works correctly there. Some
investigation shows that I actually had that variable set to nil in my
.emacs. I guess I misread it somewhere, or misclicked or something.

Aaron Meurer

Drew Adams

unread,
Feb 5, 2012, 2:03:37 AM2/5/12
to Aaron Meurer, help-gn...@gnu.org
> > Starting with Emacs 22, see option
> `read-file-name-completion-ignore-case.
>
> Thanks. I don't know why I missed that, because I searched M-x
> customize for "case".

When looking for a user option, try `apropos-variable'.
In this case, `M-x apropos-variable RET case file RET'.


Aaron Meurer

unread,
Feb 5, 2012, 5:01:38 AM2/5/12
to Drew Adams, help-gn...@gnu.org
Does the search box at the top of M-x customize do the same thing?

Aaron Meurer

Drew Adams

unread,
Feb 5, 2012, 10:28:16 AM2/5/12
to Aaron Meurer, help-gn...@gnu.org
> > When looking for a user option, try `apropos-variable'.
> > In this case, `M-x apropos-variable RET case file RET'.
>
> Does the search box at the top of M-x customize do the same thing?

Pretty much. But it finds faces as well as options.


0 new messages