23.0.60; OSX: Case insensitive file name completion

View: New views
5 Messages — Rating Filter:   Alert me  

23.0.60; OSX: Case insensitive file name completion

by Markus Triska-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On OSX 10.4.11, I have ~/Desktop and ~/DES.pdf. Until recently, when I
did "C-x C-f ~/Des TAB", it would expand to Desktop. Now, both
"DES.pdf" and "Desktop" are considered possible expansions of "Des".

I see the point, because the default file system on OSX appears to be
case insensitive. Still, it is a regression for me: I find the
previous default behaviour of Emacs (which is also the default in
22.2) much better, since it often allows faster expansion if you know
the stored case of a file. Is there a way to get it back? Thanks!


In GNU Emacs 23.0.60.2 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-04-29 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
configured using `configure  '--disable-font-backend''




RE: 23.0.60; OSX: Case insensitive file name completion

by Drew Adams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> On OSX 10.4.11, I have ~/Desktop and ~/DES.pdf. Until recently, when I
> did "C-x C-f ~/Des TAB", it would expand to Desktop. Now, both
> "DES.pdf" and "Desktop" are considered possible expansions of "Des".
>
> I see the point, because the default file system on OSX appears to be
> case insensitive. Still, it is a regression for me: I find the
> previous default behaviour of Emacs (which is also the default in
> 22.2) much better, since it often allows faster expansion if you know
> the stored case of a file. Is there a way to get it back? Thanks!
>
>
> In GNU Emacs 23.0.60.2 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
>  of 2008-04-29 on mt-computer.local
> Windowing system distributor `The XFree86 Project, Inc',
> version 11.0.40400000
> configured using `configure  '--disable-font-backend''

I could be wrong, but I suspect the difference is that PDF files (*.pdf) are no
longer ignored files for completion (variable `completion-ignored-extensions'),
by default.




Re: 23.0.60; OSX: Case insensitive file name completion

by Markus Triska-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Drew Adams" <drew.adams@...> writes:

> PDF files (*.pdf) are no longer ignored files for completion (variable
> `completion-ignored-extensions'), by default.

This is true, but the problem is independent. When I create:

   ~/t/T1.txt
   ~/t/t2.txt

and then do C-x C-f ~/t/T TAB, Emacs 22.2 completes to "~/t/T1.txt", but
the latest CVS displays T1.txt and t2.txt as possible completions.



RE: 23.0.60; OSX: Case insensitive file name completion

by Drew Adams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > PDF files (*.pdf) are no longer ignored files for
> >  (variable `completion-ignored-extensions'), by default.
>
> This is true, but the problem is independent. When I create:
>
>    ~/t/T1.txt
>    ~/t/t2.txt
>
> and then do C-x C-f ~/t/T TAB, Emacs 22.2 completes to
> "~/t/T1.txt", but
> the latest CVS displays T1.txt and t2.txt as possible completions.

I see. Perhaps they changed the default treatment of case on your platform.
Dunno. You might also check the value of
`read-file-name-completion-ignore-case', which you can customize.




Re: 23.0.60; OSX: Case insensitive file name completion

by Markus Triska-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Drew Adams" <drew.adams@...> writes:

> read-file-name-completion-ignore-case

This solves the problem for me - thank you! I suggest:

diff --git a/etc/NEWS b/etc/NEWS
index 7e80153..6851736 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -70,6 +70,8 @@ default toolkit, but you can use --with-x-toolkit=gtk if necessary.
 *** `completion-auto-help' can be set to `lazy' to list the completions only
 if you repeat the completion.  This was already supported in
 `partial-completion-mode'.
+*** `read-file-name-completion-ignore-case' now defaults to t on
+several platforms where the default file system is not case sensitive.
 
 ** Emacs now supports using both X displays and ttys in one session.
 Start the server (M-x server-start).  Then `emacsclient -t' creates a