unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.0.60; OSX: Case insensitive file name completion
@ 2008-05-02  5:29 Markus Triska
  2008-05-02 13:22 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Triska @ 2008-05-02  5:29 UTC (permalink / raw
  To: emacs-pretest-bug


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''





^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: 23.0.60; OSX: Case insensitive file name completion
  2008-05-02  5:29 23.0.60; OSX: Case insensitive file name completion Markus Triska
@ 2008-05-02 13:22 ` Drew Adams
  2008-05-02 13:32   ` Markus Triska
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2008-05-02 13:22 UTC (permalink / raw
  To: 'Markus Triska', emacs-pretest-bug

> 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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 23.0.60; OSX: Case insensitive file name completion
  2008-05-02 13:22 ` Drew Adams
@ 2008-05-02 13:32   ` Markus Triska
  2008-05-02 13:48     ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Triska @ 2008-05-02 13:32 UTC (permalink / raw
  To: Drew Adams; +Cc: emacs-pretest-bug

"Drew Adams" <drew.adams@oracle.com> 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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: 23.0.60; OSX: Case insensitive file name completion
  2008-05-02 13:32   ` Markus Triska
@ 2008-05-02 13:48     ` Drew Adams
  2008-05-02 14:18       ` Markus Triska
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2008-05-02 13:48 UTC (permalink / raw
  To: 'Markus Triska'; +Cc: emacs-pretest-bug

> > 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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 23.0.60; OSX: Case insensitive file name completion
  2008-05-02 13:48     ` Drew Adams
@ 2008-05-02 14:18       ` Markus Triska
  0 siblings, 0 replies; 5+ messages in thread
From: Markus Triska @ 2008-05-02 14:18 UTC (permalink / raw
  To: Drew Adams; +Cc: emacs-pretest-bug

"Drew Adams" <drew.adams@oracle.com> 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




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-02 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02  5:29 23.0.60; OSX: Case insensitive file name completion Markus Triska
2008-05-02 13:22 ` Drew Adams
2008-05-02 13:32   ` Markus Triska
2008-05-02 13:48     ` Drew Adams
2008-05-02 14:18       ` Markus Triska

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).