all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Thouis (Ray) Jones" <thouis@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: how to make find-file treat space/dashes like any other character?
Date: Thu, 30 May 2019 10:58:03 -0400	[thread overview]
Message-ID: <CAHGWWxFaBZoxw2z=WV1wm_6-qTVOrvGKU4mgpAJxMJ=8Vpmvsg@mail.gmail.com> (raw)

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


             reply	other threads:[~2019-05-30 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30 14:58 Thouis (Ray) Jones [this message]
2019-05-30 17:36 ` how to make find-file treat space/dashes like any other character? Emanuel Berg via help-gnu-emacs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHGWWxFaBZoxw2z=WV1wm_6-qTVOrvGKU4mgpAJxMJ=8Vpmvsg@mail.gmail.com' \
    --to=thouis@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.