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: Interactively finding file in a list of directories Date: Fri, 9 Mar 2007 13:25:56 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173475850 18430 80.91.229.12 (9 Mar 2007 21:30:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 21:30:50 +0000 (UTC) Cc: help-gnu-emacs To: "Peter Dyballa" , "Denis Bueno" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 22:30:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPmfj-00070A-Gq for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 22:30:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPmg2-0006mZ-Aq for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 16:31:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPmdt-0004bK-Ph for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 16:28:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPmdp-0004U7-QN for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 16:28:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPmdp-0004Tl-J5 for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 16:28:45 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPmdR-0000Hy-Pj for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 16:28:22 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l29LQBWZ002323; Fri, 9 Mar 2007 14:26:11 -0700 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l299Un4H011036; Fri, 9 Mar 2007 14:26:10 -0700 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-53.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2517540631173475561; Fri, 09 Mar 2007 14:26:01 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41844 Archived-At: > > For example, assume there are 4 different files all named "find.jsp" > > in different directories, and I would like to find a particular one. I > > would do M-x find-resource, type "find", hit TAB, it I would see a > > list that looks something like: > > There is an interface to the UNIX locate database (M-x locate RET > pattern RET). Regularly, once a day or once a weekly, the whole disk > is searched and all path names, files and directories, but no > "special files," are recorded in a database or hash file. The command > locate takes as argument a search pattern that allows a few > metacharacters and looks up this pattern in the database, so it's > much faster than find. Executing locate as a shell command, you could > filter a bit more with grep what locate returns ... The link I gave earlier provides info on several such Emacs interfaces to a UNIX or GNU/Linux `locate' database: http://www.emacswiki.org/cgi-bin/wiki/LocateFilesAnywhere.