unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Anderson <rwa@alumni.princeton.edu>
Subject: naming convention based file toggling facility
Date: 25 Sep 2003 00:07:31 -0700	[thread overview]
Message-ID: <1064473652.1354.41.camel@lan1> (raw)


I've had a hackish little elisp function for years that always struck me
as a slightly surprising omission from emacs: the ability to toggle
between files based on a naming convention like: <source>.c and
<source>.h.

This of course, generalizes to more contexts.  I use it for toggling
between header, implementation, and unittest files, for example, based
on the convention that the corresonding unittest file is
<source>-test.c.  I'm sure it's useful elsewhere, given a reasonable
method for defining the relationship between the names of the related
files.

This kind of "toggle header" or "toggle source" function is standard IDE
fare.  I got used to it from a previous life when I was using Metrowerks
Codewarrior.  It's _very_ handy, IMO.

Is there some reason that such a thing is not included in emacs?  Maybe
it's there and I've missed it?  Would the maintainers be interested in
such a facility if I were to write it?

Bob

             reply	other threads:[~2003-09-25  7:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25  7:07 Robert Anderson [this message]
2003-09-25  7:20 ` naming convention based file toggling facility Masatake YAMATO
2003-09-25  7:24   ` Robert Anderson
2003-09-25 23:21   ` Richard Stallman
2003-09-26  6:03     ` Masatake YAMATO
2003-09-27  2:31       ` Richard Stallman
2003-09-25 10:27 ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1064473652.1354.41.camel@lan1 \
    --to=rwa@alumni.princeton.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).