From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Felix Newsgroups: gmane.emacs.help Subject: Re: .cpp, switch to .h Date: Sat, 14 Feb 2004 18:02:55 +0800 Organization: Bentium Ltd. (CN99) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076753791 32205 80.91.224.253 (14 Feb 2004 10:16:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2004 10:16:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 11:16:24 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ArwqW-00034S-00 for ; Sat, 14 Feb 2004 11:16:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Arwpz-0005xM-SH for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2004 05:15:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 61.171.205.8 Original-X-Trace: news.yaako.com 1076752975 26140 61.171.205.8 (14 Feb 2004 10:02:55 GMT) Original-X-Complaints-To: usenet@news.yaako.com Original-NNTP-Posting-Date: Sat, 14 Feb 2004 10:02:55 +0000 (UTC) User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:o2gO8MYCCPL1gRDQ+J8LzuL9UhU= Original-Xref: shelby.stanford.edu gnu.emacs.help:120895 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16844 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16844 >>>>> "Daniel" == Daniel Lidstrom writes: Daniel> Hello, I would like a script that I can bind to Ctrl-Shift-h Daniel> that will switch from a .cpp file to the associated .h file, if Daniel> there is one. For example, if I have Hash.cpp opened and press Daniel> the selected keys, emacs switches to Hash.h. If there is no Daniel> Hash.h nothing is done. Any help appreciated. Thanks! Daniel> -- Daniel ff-find-other-file -- Felix