emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] Prefix for tangled files
@ 2010-10-28 11:01 Sébastien Vauban
  2010-10-29  7:56 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Vauban @ 2010-10-28 11:01 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Babel] Prefix for tangled files
  2010-10-28 11:01 [Babel] Prefix for tangled files Sébastien Vauban
@ 2010-10-29  7:56 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2010-10-29  7:56 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-29  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28 11:01 [Babel] Prefix for tangled files Sébastien Vauban
2010-10-29  7:56 ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).