From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: roy@panix.com (Roy Smith) Newsgroups: gmane.emacs.help Subject: Need help writing file-visiting macro Date: 25 Jul 2005 09:58:24 -0400 Organization: PANIX -- Public Access Networks Corp. Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1122300225 32599 80.91.229.2 (25 Jul 2005 14:03:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 14:03:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 25 16:03:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dx3Xj-00053s-8K for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jul 2005 16:02:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dx3a1-0003bJ-Hf for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jul 2005 10:05:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!panix2.panix.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 8 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader2.panix.com 1122299905 10438 166.84.1.2 (25 Jul 2005 13:58:25 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Mon, 25 Jul 2005 13:58:25 +0000 (UTC) Original-Xref: shelby.stanford.edu comp.emacs:89749 gnu.emacs.help:132635 Original-To: help-gnu-emacs@gnu.org 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:28154 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28154 I'm working in a software development system which has classes defined in foo.mdl files, with the corresponding implementation code in foo_Impl.c files I want to write a macro or function which lets you flip back and forth between the two. If I'm looking at a .mdl file, I want it to construct the corresponding _Impl.c filename and visit that file. Is that possible? I'm using GNU Emacs 21.3.1.