emacs lisp repository

Mike Small smallm at panix.com
Thu Aug 21 12:13:21 EDT 2003


Hi,

Does anyone know of an emacs lisp function that will
switch you to a buffer related in some way to the one you're 
currently editing?  In my case, I want to be able to hit a key
while editing a c++ header file and have it go to a buffer
for a file with the same name but cc (or cpp) as the file name
extension.  If it doesn't find one it should create one either
by visiting a file in the buffer's file's directory or, if
that fails, just start a new one.  It should also do the
reverse - visit the h file for a cc file.

I guess this wouldn't be too hard to write, but if someone
knows of something that's already done (or something close
to this) I'd appreciate it.

-- 
Michael Small
smallm at panix.com



More information about the Discuss mailing list