unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to make find-file treat space/dashes like any other character?
@ 2019-05-30 14:58 Thouis (Ray) Jones
  2019-05-30 17:36 ` Emanuel Berg via help-gnu-emacs
  0 siblings, 1 reply; 2+ messages in thread
From: Thouis (Ray) Jones @ 2019-05-30 14:58 UTC (permalink / raw)
  To: help-gnu-emacs

Is there an easy way to configure find-file and its ilk to treat spaces &
dashes like any other character in file completion?

If I have three files in a directory with names:
abc 123.txt
abc-123.txt
abc_123.txt

Completing filenames from "abc" in find-file will preferentially choose the
first, then the second, then the last.  I'd like for it to treat each of
these the same (stopping at "abc" and prompting with a list of completions).

It looks like this might be hard-coded in completion--try-word-completion,
and I've started to try to write defadvice for this function, but am hoping
there is an easier way.

Thanks,
Thouis Jones


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

end of thread, other threads:[~2019-05-30 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-30 14:58 how to make find-file treat space/dashes like any other character? Thouis (Ray) Jones
2019-05-30 17:36 ` Emanuel Berg via help-gnu-emacs

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