all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* case-insensitive filename completion bug
@ 2008-06-10  8:06 Miles Bader
  2008-06-10 18:42 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Miles Bader @ 2008-06-10  8:06 UTC (permalink / raw)
  To: emacs-devel

If I have filename called "Foo", and I try to visit it with find-file,
and have `read-file-name-completion-ignore-case' set to t, then I can
type:

   C-x C-f f o TAB

hitting TAB will (1) change the lowercase "f" I typed to be "F", and (2)
insert the missing "o".

However, if I type:

   C-x C-f f o o TAB

it will say " [sole completion]" -- but will _not_ change change the
lowercase "f" to uppercase.  Because I'm using a case-sensitive
filesystem, the final filename doesn't exist, even though emacs said it
did.

One of the main reasons I like case-insensitive completion is that Emacs
will usually take care of capitalizating of studly-caps filenames; as a
result, I instinctively hit TAB to "correct" what I just typed and then
hit RET.  So this corner case where TAB _doesn't_ do it is pretty
annoying (and occurs surprisingly often).

So I think Emacs should replace the entered name with the "correct"
completion even if they are the same length.

[This case seems to work correctly for other types of case-insensitive
completion, e.g., buffer-names.]

Thanks,

-Miles

-- 
If you can't beat them, arrange to have them beaten.  [George Carlin]




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

end of thread, other threads:[~2008-06-13  7:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10  8:06 case-insensitive filename completion bug Miles Bader
2008-06-10 18:42 ` Stefan Monnier
2008-06-13  7:38   ` Miles Bader

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.