From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm 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:17:40 +0200 Organization: The Church of Emacs Message-ID: <87ira2hzij.fsf@debby.local.net> References: <1181061564.502427.153140@g4g2000hsf.googlegroups.com> <87zm3e5d7n.fsf@kfs-lx.testafd.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181078334 21871 80.91.229.12 (5 Jun 2007 21:18:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 21:18:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Enselic To: no-spam@cua.dk (Kim F. Storm) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 23:18:53 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 1HvgQT-0003F7-Sq for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 23:18:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvgQT-0000X9-5e for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2007 17:18:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvgQE-0000T3-IY for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:18:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvgQD-0000Qx-2K for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:18:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvgQC-0000Qm-UZ for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:18:33 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HvgQC-00008w-FW for help-gnu-emacs@gnu.org; Tue, 05 Jun 2007 17:18:32 -0400 Original-Received: from [89.12.127.160] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1HvgQB0w5k-0006ED; Tue, 05 Jun 2007 23:18:31 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.67) (envelope-from ) id 1HvgPM-0001kt-G6; Tue, 05 Jun 2007 23:17:40 +0200 In-Reply-To: <87zm3e5d7n.fsf@kfs-lx.testafd.dk> (Kim F. Storm's message of "Tue\, 05 Jun 2007 23\:00\:12 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Provags-ID: V01U2FsdGVkX19o08jmb2wx8zaw2hsOVsBEIEu50H28iLQpjaT uP6KgF5aGEFlPRGO1U6Xulbx/uL3AiHLXuUU9DPoDB4peVaQTL tNuNw1iqAEGJ/PfnJDnJwGdNPOG+ti5 X-detected-kernel: Linux 2.6? (barebone, rare!) 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:44684 Archived-At: no-spam@cua.dk (Kim F. Storm) writes: > 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 I also wanted to suggest your ido-mode but Enselic wants to get the relevant files from a whole directory hierarchy (please have a look above) and not only from the *current* directory. -- Best wishes H. Dieter Wilhelm Darmstadt, Germany