From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Thouis (Ray) Jones" Newsgroups: gmane.emacs.help Subject: how to make find-file treat space/dashes like any other character? Date: Thu, 30 May 2019 10:58:03 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="99056"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 30 17:22:43 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWMt7-000Pcg-R5 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2019 17:22:41 +0200 Original-Received: from localhost ([127.0.0.1]:55508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWMt6-0002Wx-N6 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 May 2019 11:22:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWMVD-0003mM-O0 for help-gnu-emacs@gnu.org; Thu, 30 May 2019 10:58:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWMVC-0001ce-QU for help-gnu-emacs@gnu.org; Thu, 30 May 2019 10:57:59 -0400 Original-Received: from mail-it1-x12e.google.com ([2607:f8b0:4864:20::12e]:40927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWMVC-0001cD-Lo for help-gnu-emacs@gnu.org; Thu, 30 May 2019 10:57:58 -0400 Original-Received: by mail-it1-x12e.google.com with SMTP id h11so9840005itf.5 for ; Thu, 30 May 2019 07:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=N/MFgbvLWO7aqPjfitaqZlcdh0TZ2w78tMa2JbIJRHA=; b=lavmD3vLg49IczWCOjQ3fy4QNAEjTcUTr1k/xaKT6nCXISoVIPFcWhUOz6KqsWuy+T XKqVtogbHiICFbwyZGAYj1Wgb1imMClCtWNyQ0jF6Sh2MO4899GwEtH44uEr2y+alMg6 YeqoRjBXJzLFwfMGQXwWMk3lnuGGqKmC/111/ciuwi3Vhhv4h061HatTPUO37XAUIFZ8 uSiewWNn5hUJ6Q3zAxfjmLlJasXNArx0RhtG6YdQJoXNYmoXV6kCSSYIExi5q9VthaRE xsaZdnjZBsJplrPxbyndnviRp6CU7fo96soa801ydREQVXc0X7Q6af34h0kKQR4O8EQ1 W2lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N/MFgbvLWO7aqPjfitaqZlcdh0TZ2w78tMa2JbIJRHA=; b=cTAmWoQ9ymbuVZ6kllxEldoUjbBqnBU8ieOjSOjLD12j+3h0MozWIhRcvDEHgX2Ifm 9YfACgT7tPRZB23jCiy6kODxWRh0BY/qi5rkuLXDMJvYCNZ7hcUySHOhCEGO68/Fn6nz r+sQOvunC+qT9Drj8ZLCC392J5U31OsLKYPFjFdej2+YRkslnuQQ3NYWOQXv76IA18M1 bbgVsAroVEeLvEI4Q2w3vYhOUQ/daiMSDCoGgExPgkHAgR6gAQ4410Ox2drASzyWvV7L MpQ10KCSJT+Py136obaKFwygTRqGxHG1vaBcT23gdo7WaV455Mvpu/tJMBZ5jV8KHFzn bsOQ== X-Gm-Message-State: APjAAAWnjxwZfIjS9rhdGNTsL3m5GfvUeHbJEOIy1ZCxB3N+RfA0zOPN gaqipIb861qyEjdu2si8MlMhFWmeXT/6NHUnBupvFh+RtFE= X-Google-Smtp-Source: APXvYqwwAKL9Drb1hc7gAfJzCWIhrz2OvENTUIEGWyoFeTDBRDQSShAa//vle5uIhLLM3PxnsA6NkkSdUE3VbOipCsM= X-Received: by 2002:a05:660c:552:: with SMTP id w18mr3051817itk.26.1559228277166; Thu, 30 May 2019 07:57:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::12e X-Mailman-Approved-At: Thu, 30 May 2019 11:22:26 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120702 Archived-At: 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