From: wildernesscat@hotmail.com (Danny Dorfman)
Subject: How to automate file-opening (derived filename)?
Date: 7 Jan 2003 06:52:14 -0800 [thread overview]
Message-ID: <30055c1f.0301070652.62cf0153@posting.google.com> (raw)
Hi!
I need to devise an e-lisp macro, that would do the following:
Assume I am now looking at a file named "/a/b/c/ZZZ/d/e.cpp", I'd like
the macro to open "/a/b/c/YYY/d/e.h" for me. The elements a,b,c,d,e
are unknown in advance, while elements ZZZ and YYY are a constant part
of the path.
How do I do this? (My understanding of e-lisp is pretty basic).
I am using GNU Emacs 21.2.1.
Regards,
Danny
next reply other threads:[~2003-01-07 14:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-07 14:52 Danny Dorfman [this message]
2003-01-07 18:19 ` How to automate file-opening (derived filename)? Friedrich Dominicus
2003-01-08 6:03 ` Alfred M. Szmidt
[not found] ` <mailman.53.1042007441.21513.help-gnu-emacs@gnu.org>
2003-01-08 11:54 ` Danny Dorfman
2003-01-11 12:49 ` Kai Großjohann
2003-01-08 13:05 ` Danny Dorfman
2003-01-09 6:39 ` Friedrich Dominicus
2003-01-09 6:44 ` Danny Dorfman
2003-01-09 8:06 ` Friedrich Dominicus
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=30055c1f.0301070652.62cf0153@posting.google.com \
--to=wildernesscat@hotmail.com \
/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.
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).