From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: marcmj Newsgroups: gmane.emacs.devel Subject: searching file from emacs Date: Thu, 14 Feb 2008 15:41:42 -0800 (PST) Message-ID: <15491987.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203049872 16094 80.91.229.12 (15 Feb 2008 04:31:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 04:31:12 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 05:31:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPsEZ-0005dp-BL for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 05:31:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPsE5-0003Ts-DK for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 23:31:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPni7-0006WG-BU for emacs-devel@gnu.org; Thu, 14 Feb 2008 18:41:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPni5-0006VF-JS for Emacs-devel@gnu.org; Thu, 14 Feb 2008 18:41:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPni5-0006Ux-DU for Emacs-devel@gnu.org; Thu, 14 Feb 2008 18:41:45 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPni5-0004Tr-5Y for Emacs-devel@gnu.org; Thu, 14 Feb 2008 18:41:45 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JPni2-0000Xv-K9 for Emacs-devel@gnu.org; Thu, 14 Feb 2008 15:41:42 -0800 X-Nabble-From: marcjourneux@libertysurf.fr X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 14 Feb 2008 23:31:01 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89135 Archived-At: Hello, I am new to lisp and I want to make the following: - in a emacs window, editing a routine, I locate the cursor in front or in the middle of a routine name - the macro will look for the entire name, then find the file in a given list of directory - once found, the macro will open the routine in the same emacs window So if I have the source example.f where I have the following line: call other_routine(a, b) I would like to place the cursor on "other_routine" (anywhere in this routine name) then hit a key and the code will search for other_routine.f in a set of pre-defined directories, then open other_routine.f in the emacs window. So if anyone has some starting LISP code for this or may be able to help, I'll appreciate ! Thanks Marc -- View this message in context: http://www.nabble.com/searching-file-from-emacs-tp15491987p15491987.html Sent from the Emacs - Dev mailing list archive at Nabble.com.