unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* case sensitivity in 'find file'?
@ 2004-06-23 15:32 Viktor Haag
  2004-06-23 15:42 ` David Kastrup
  2004-06-23 17:05 ` John Paul Wallington
  0 siblings, 2 replies; 7+ messages in thread
From: Viktor Haag @ 2004-06-23 15:32 UTC (permalink / raw)



I'm using Emacs 21.3.50.1 built on Mac OSX through the Fink
project with the tarball 'emacs-21.3.50-20040617.tar.gz'.

I've seen new behaviour that I don't like; when I use 'find-file'
the completion now seems to be case-insensitive. I find this
annoying as it now sees ~/Library and ~/lib as similar requiring
more keystrokes when finding a file in the ~/lib subtree.

There must be a way to retrieve the old case-sensitive behaviour
so that ~/Lib and ~/lib are matched as different names.

Can some kind soul please let me know where the variables are
that control this behaviour?

-- 
Viktor Haag : Software & Information Design : Research In Motion
                              +--+
 Disclaimer mandated by employer: "This transmission may contain
confidential or privileged material. Any use of this information
by anyone other than the intended recipient is prohibited. If you
  have received this transmission in error, please immediately
    reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this
 transmission by unintended recipients is not authorized and may
                          be unlawful."

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

* Re: case sensitivity in 'find file'?
  2004-06-23 15:32 case sensitivity in 'find file'? Viktor Haag
@ 2004-06-23 15:42 ` David Kastrup
  2004-06-23 18:48   ` Viktor Haag
  2004-06-23 17:05 ` John Paul Wallington
  1 sibling, 1 reply; 7+ messages in thread
From: David Kastrup @ 2004-06-23 15:42 UTC (permalink / raw)


Viktor Haag <vhaag@rim.com> writes:

> I'm using Emacs 21.3.50.1 built on Mac OSX through the Fink
> project with the tarball 'emacs-21.3.50-20040617.tar.gz'.
> 
> I've seen new behaviour that I don't like; when I use 'find-file'
> the completion now seems to be case-insensitive. I find this
> annoying as it now sees ~/Library and ~/lib as similar requiring
> more keystrokes when finding a file in the ~/lib subtree.
> 
> There must be a way to retrieve the old case-sensitive behaviour
> so that ~/Lib and ~/lib are matched as different names.
> 
> Can some kind soul please let me know where the variables are
> that control this behaviour?

completion-ignore-case?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: case sensitivity in 'find file'?
  2004-06-23 15:32 case sensitivity in 'find file'? Viktor Haag
  2004-06-23 15:42 ` David Kastrup
@ 2004-06-23 17:05 ` John Paul Wallington
  2004-06-23 18:52   ` Viktor Haag
  1 sibling, 1 reply; 7+ messages in thread
From: John Paul Wallington @ 2004-06-23 17:05 UTC (permalink / raw)


Viktor Haag <vhaag@rim.com> writes:

> I'm using Emacs 21.3.50.1 built on Mac OSX through the Fink
> project with the tarball 'emacs-21.3.50-20040617.tar.gz'.
>
> I've seen new behaviour that I don't like; when I use 'find-file'
> the completion now seems to be case-insensitive. I find this
> annoying as it now sees ~/Library and ~/lib as similar requiring
> more keystrokes when finding a file in the ~/lib subtree.
>
> There must be a way to retrieve the old case-sensitive behaviour
> so that ~/Lib and ~/lib are matched as different names.
>
> Can some kind soul please let me know where the variables are
> that control this behaviour?

There isn't presently an obvious way because the builtin
`read-file-name' was changed to bind `completion-ignore-case' to t
before calling `completing-read' on DOS, NT, VMS and MACOSX systems.

You could partially revert that change to Fread_file_name, eg:

--- fileio.c	22 May 2004 23:17:17 +0100	1.505
+++ fileio.c	23 Jun 2004 17:19:07 +0100	
@@ -6284,7 +6284,7 @@
     }
 
   count = SPECPDL_INDEX ();
-#if defined VMS || defined DOS_NT || defined MAC_OSX
+#if defined VMS || defined DOS_NT
   specbind (intern ("completion-ignore-case"), Qt);
 #endif

Maybe there should be a `read-file-name-completion-ignore-case' user
variable ?

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

* Re: case sensitivity in 'find file'?
  2004-06-23 15:42 ` David Kastrup
@ 2004-06-23 18:48   ` Viktor Haag
  0 siblings, 0 replies; 7+ messages in thread
From: Viktor Haag @ 2004-06-23 18:48 UTC (permalink / raw)


David Kastrup <dak@gnu.org> writes:

> Viktor Haag <vhaag@rim.com> writes:
> 
> > I'm using Emacs 21.3.50.1 built on Mac OSX through the Fink
> > project with the tarball 'emacs-21.3.50-20040617.tar.gz'.
> > 
> > I've seen new behaviour that I don't like; when I use
> > 'find-file' the completion now seems to be
> > case-insensitive. I find this annoying as it now sees
> > ~/Library and ~/lib as similar requiring more keystrokes when
> > finding a file in the ~/lib subtree.
> > 
> > There must be a way to retrieve the old case-sensitive
> > behaviour so that ~/Lib and ~/lib are matched as different
> > names.
> > 
> > Can some kind soul please let me know where the variables are
> > that control this behaviour?
> 
> completion-ignore-case?

Unfortunately, no. I checked that, but it's currently set to
'nil' which should make it case-sensitive.

-- 
Viktor Haag : Software & Information Design : Research In Motion
                              +--+
 Disclaimer mandated by employer: "This transmission may contain
confidential or privileged material. Any use of this information
by anyone other than the intended recipient is prohibited. If you
  have received this transmission in error, please immediately
    reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this
 transmission by unintended recipients is not authorized and may
                          be unlawful."

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

* Re: case sensitivity in 'find file'?
  2004-06-23 17:05 ` John Paul Wallington
@ 2004-06-23 18:52   ` Viktor Haag
  2004-06-24 15:46     ` John Paul Wallington
  0 siblings, 1 reply; 7+ messages in thread
From: Viktor Haag @ 2004-06-23 18:52 UTC (permalink / raw)


John Paul Wallington <jpw@gnu.org> writes:

> There isn't presently an obvious way because the builtin
> `read-file-name' was changed to bind `completion-ignore-case' to t
> before calling `completing-read' on DOS, NT, VMS and MACOSX systems.
> 
> You could partially revert that change to Fread_file_name, eg:
> 
> --- fileio.c	22 May 2004 23:17:17 +0100	1.505
> +++ fileio.c	23 Jun 2004 17:19:07 +0100	
> @@ -6284,7 +6284,7 @@
>      }
>  
>    count = SPECPDL_INDEX ();
> -#if defined VMS || defined DOS_NT || defined MAC_OSX
> +#if defined VMS || defined DOS_NT
>    specbind (intern ("completion-ignore-case"), Qt);
>  #endif
> 
> Maybe there should be a `read-file-name-completion-ignore-case'
> user variable ?

That sounds like a fine idea, because I can easily see that users
might prefer this behaviour be configurable.

-- 
Viktor Haag : Software & Information Design : Research In Motion
                              +--+
 Disclaimer mandated by employer: "This transmission may contain
confidential or privileged material. Any use of this information
by anyone other than the intended recipient is prohibited. If you
  have received this transmission in error, please immediately
    reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this
 transmission by unintended recipients is not authorized and may
                          be unlawful."

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

* Re: case sensitivity in 'find file'?
  2004-06-23 18:52   ` Viktor Haag
@ 2004-06-24 15:46     ` John Paul Wallington
  2004-06-24 20:31       ` Viktor Haag
  0 siblings, 1 reply; 7+ messages in thread
From: John Paul Wallington @ 2004-06-24 15:46 UTC (permalink / raw)


Viktor Haag <vhaag@rim.com> writes:

>> Maybe there should be a `read-file-name-completion-ignore-case'
>> user variable ?
>
> That sounds like a fine idea, because I can easily see that users
> might prefer this behaviour be configurable.

Wanna send a patch to emacs-devel ?

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

* Re: case sensitivity in 'find file'?
  2004-06-24 15:46     ` John Paul Wallington
@ 2004-06-24 20:31       ` Viktor Haag
  0 siblings, 0 replies; 7+ messages in thread
From: Viktor Haag @ 2004-06-24 20:31 UTC (permalink / raw)


John Paul Wallington <jpw@gnu.org> writes:

> Viktor Haag <vhaag@rim.com> writes:
> 
> >> Maybe there should be a `read-file-name-completion-ignore-case'
> >> user variable ?
> >
> > That sounds like a fine idea, because I can easily see that users
> > might prefer this behaviour be configurable.
> 
> Wanna send a patch to emacs-devel ?

I'd love to, but I'm not up to that level of work; I'm a
technical writer not a developer, and my competency with
emacs-lisp (or C) is not really that great.

-- 
Viktor Haag : Software & Information Design : Research In Motion
                              +--+
 Disclaimer mandated by employer: "This transmission may contain
confidential or privileged material. Any use of this information
by anyone other than the intended recipient is prohibited. If you
  have received this transmission in error, please immediately
    reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this
 transmission by unintended recipients is not authorized and may
                          be unlawful."

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

end of thread, other threads:[~2004-06-24 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 15:32 case sensitivity in 'find file'? Viktor Haag
2004-06-23 15:42 ` David Kastrup
2004-06-23 18:48   ` Viktor Haag
2004-06-23 17:05 ` John Paul Wallington
2004-06-23 18:52   ` Viktor Haag
2004-06-24 15:46     ` John Paul Wallington
2004-06-24 20:31       ` Viktor Haag

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