From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: wildernesscat@hotmail.com (Danny Dorfman) Newsgroups: gmane.emacs.help Subject: Re: How to automate file-opening (derived filename)? Date: 8 Jan 2003 03:54:26 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <30055c1f.0301080354.67d69de2@posting.google.com> References: <30055c1f.0301070652.62cf0153@posting.google.com> <87heckhlfg.fsf@fbigm.here> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1042027462 3612 80.91.224.249 (8 Jan 2003 12:04:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 12:04:22 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WEwX-0000w6-00 for ; Wed, 08 Jan 2003 13:04:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WEoH-0007QN-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 08 Jan 2003 06:55:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 213.8.87.246 Original-X-Trace: posting.google.com 1042026867 31582 127.0.0.1 (8 Jan 2003 11:54:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 8 Jan 2003 11:54:27 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:108728 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5257 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5257 This is not suitable, since my #include files are located using a different path, than the one suggested by Emacs. Our tree structure looks like this: /a/b/c/src/module/file.cpp + /a/b/c/inc/module/file.h Maybe I _do_ need some filename manipulation after all? Danny "Alfred M. Szmidt" wrote in message news:... > Maybe you are looking for ff-find-other-file? > > (ff-find-other-file &optional IN-OTHER-WINDOW IGNORE-INCLUDE) > > Find the header or source file corresponding to this file. > Being on a `#include' line pulls in that file. > > If optional IN-OTHER-WINDOW is non-nil, find the file in the other window. > If optional IGNORE-INCLUDE is non-nil, ignore being on `#include' lines. > ...