On Sat, Oct 22, 2011 at 9:58 AM, Christian Moe
<mail@christianmoe.com> wrote:
On 10/21/11 8:40 PM, Rainer M Krug wrote:
Just to add to it: at the moment I have e.g:
#+BABEL: :var MAINVERSION=0
#+BABEL: :var SVNVERSION=(vc-working-revision (buffer-file-name))
#+BABEL: :var SVNSTATE=( symbol-name (vc-state (or (buffer-file-name)
org-current-export-file)))
#+BABEL: :var SVNSTATENUM=(if (eq (vc-state (or (buffer-file-name)
org-current-export-file)) 'up-to-date) 0 13)
#+BABEL: :var DISP_PACKAGE="seedDisp_0.4-13.tar.gz"
which would look horrible in one line and a nightmare to edit.
Any suggestions how this cold be changed?
Wow. I guess I was wrong to imagine your problem was solved.
If your code blocks share the same language, and it supports sessions, I'd bite the bullet and transform them into #+HEADERS lines for the first src block, then reuse them through a session. Does that make sense?
If your variables are going to be used by different src blocks in different languages, I don't have any elegant solution.
Yep - different languages: R and sh
Yours,
Christian