From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.help Subject: Re: A quick way of opening any file with given extension within a directory hierarchy? Date: Tue, 05 Jun 2007 23:00:12 +0200 Message-ID: <87zm3e5d7n.fsf@kfs-lx.testafd.dk> References: <1181061564.502427.153140@g4g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181077273 17995 80.91.229.12 (5 Jun 2007 21:01:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 21:01:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Enselic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 23:01:09 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 1Hvg9M-0007X7-M5 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 23:01:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvg9M-0005mH-9J for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 17:01:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvg99-0005ja-KE for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:00:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvg98-0005ho-PW for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:00:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvg98-0005hX-Ld for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:00:54 -0400 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Hvg98-0006MV-1B for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:00:54 -0400 Original-Received: (qmail 76671 invoked from network); 5 Jun 2007 21:00:48 -0000 Original-Received: from unknown (HELO kfs-lx.testafd.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 5 Jun 2007 21:00:48 -0000 In-Reply-To: <1181061564.502427.153140@g4g2000hsf.googlegroups.com> (enselic@gmail.com's message of "Tue\, 05 Jun 2007 09\:39\:24 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: FreeBSD 4.6-4.9 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:44683 Archived-At: Enselic writes: > 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? Try ido mode. Not exactly the interface you asked for, but you can do (in root/): C-x C-f M-f fi RET and then select the file you want with <- and -> (or C-s / C-r) RET -- Kim F. Storm http://www.cua.dk