From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Allowing wildcards in Find file prompt that resolve to a single file? Date: Fri, 27 Jun 2014 15:33:10 -0700 (PDT) Message-ID: <0a60a48f-2598-4da8-b1f0-b9f8787702f8@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1403908432 742 80.91.229.3 (27 Jun 2014 22:33:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2014 22:33:52 +0000 (UTC) To: "Ludwig, Mark" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 28 00:33:45 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X0eiG-0007PG-8v for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jun 2014 00:33:44 +0200 Original-Received: from localhost ([::1]:52783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0eiF-0007vy-Sh for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jun 2014 18:33:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0ehw-0007vq-S4 for help-gnu-emacs@gnu.org; Fri, 27 Jun 2014 18:33:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0ehm-0001DC-4b for help-gnu-emacs@gnu.org; Fri, 27 Jun 2014 18:33:24 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:27504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0ehl-0001Cz-Uj for help-gnu-emacs@gnu.org; Fri, 27 Jun 2014 18:33:14 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5RMXBul009252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Jun 2014 22:33:12 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5RMXAFD008132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Jun 2014 22:33:11 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5RMXAO0008114; Fri, 27 Jun 2014 22:33:10 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98437 Archived-At: > Has anyone made an enhancement or extension that would let a user > specify wildcard(s) in the Find file prompt, as long as the > wildcard(s) resolve to a single file? >=20 > The reason I want this is because we have numerous files that > have uniqueness at the tail end (which is why TAB doesn't help). >=20 > Consider, for example, that there might be only file in each > directory that ends with ".foo" (made-up example). I would enter > "dir1/dir2/*.foo" at the Find file prompt and have it find the > one ".foo" file in dir2. (The file name before ".foo" is a > mangling of "dir1" and "dir2" for historical reasons.) This is already the case. C-x C-f dir1/dir2/*.foo RET opens all files that match the glob pattern *.foo in that directory. If there is only one such file, then it is the only one visited. (Do not confuse glob-pattern matching with TAB-completion pattern matching.)