On Sat, Oct 22, 2011 at 9:58 AM, Christian Moe 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 > > > > > > > > > > > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug