From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Babel] Prefix for tangled files
Date: Fri, 29 Oct 2010 01:56:21 -0600 [thread overview]
Message-ID: <87vd4lv3dm.fsf@gmail.com> (raw)
In-Reply-To: <80k4l27f90.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Thu, 28 Oct 2010 13:01:31 +0200")
Hi Seb,
You could use the `org-babel-post-tangle-hook' to rename all tangled
files behind some common prefix. Any function on this hook will be
called once per tangled file from within the tangled file, so it could
use the `buffer-file-name' to rename the file.
Best -- Eric
Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:
> Hello,
>
> Wanting to use Babel as much as possible, writing a lot of scripts that I
> tangle (and eventually share with others), I find that prefixing all tangled
> files shoud be a good habit in order to directly see which files (in dired)
> are the results of a tangling process.
>
> Of course, I can have this habit, but others (and colleagues) may not have it.
>
> Would it make sense to have an Org-Babel variable for such a prefix
> (defaulting to the empty string, and overridable per block, subtree, file,
> language, as for the rest)?
>
> Best regards,
> Seb
prev parent reply other threads:[~2010-10-29 7:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 11:01 [Babel] Prefix for tangled files Sébastien Vauban
2010-10-29 7:56 ` Eric Schulte [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vd4lv3dm.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.