From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Enselic Newsgroups: gmane.emacs.help Subject: A quick way of opening any file with given extension within a directory hierarchy? Date: Tue, 05 Jun 2007 09:39:24 -0700 Organization: http://groups.google.com Message-ID: <1181061564.502427.153140@g4g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1181061749 23037 80.91.229.12 (5 Jun 2007 16:42:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 16:42:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 18:42:27 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 1Hvc6u-0003Bu-4s for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 18:42:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvc6t-00083q-Nu for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 12:42:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g4g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 83.233.151.58 Original-X-Trace: posting.google.com 1181061564 13192 127.0.0.1 (5 Jun 2007 16:39:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 5 Jun 2007 16:39:24 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g4g2000hsf.googlegroups.com; posting-host=83.233.151.58; posting-account=UCk5Bg0AAADPsAztUtvWN1oDuygFB2bK Original-Xref: shelby.stanford.edu gnu.emacs.help:149084 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:44671 Archived-At: Hello I am wondering if this functionality has been written by someone. 1. I call func-i-look-for. 2. The mini buffer switches to "What file do you want?: " 3. When I start typing, there is a buffer that shows all files within a given directory hierarchy whose filenames start with what I have written. 4. I can cycle between available completions with C-n C-p (without messing up what I have written in the minibuffer) and takes me to chosen buffer. Let's clarify with an example. I have the following source tree: root/file.cpp root/gtk/gtk.cpp root/msw/file2.cpp And call (after requred setup is made) func-i-look-for, then type "fi" I would now have file.cpp and file2.cpp listed in the buffer, and C-n would get me to file2.cpp. Does anyone know if there is elisp code that does this somewhere? Thank you, - Martin Nordholts