>>>> "DK" == Dhruva KRISHNAMURTHY
<Dhruva_KRISHNAMURTHY(a)delmia.com> writes:
DK> Hi,
DK> I work in a company where the development is predominantly done in MSDEV ( VC5
DK> ). I use XEmacs and Emacs ( sometimes ) for my development. I would like to know
DK> whether there some way of simulating the JUMP to a HEADER FILE from a CPP source
DK> file. This is done using Alt-S in MSDEV. This toggles between the header file
DK> and the source file provided they have the same name eg: MySource.cpp and
DK> Mysource.h
DK> Any information in this regard is welcome as this would be a great help to me.
This sort of simple thing is something for users to define in their .emacs.
(add-hook
'c-mode-common-hook
(lambda ()
(local-set-key [(meta s)]
(lambda ()
(interactive)
(find-file-other-window
(replace-in-string buffer-file-name "\\.cpp" ".h"))))))
Should support for something like this be in cc-mode?