|
From: | Christian Moe |
Subject: | Re: [O] [ANN] BREAKING CHANGE -- removing #+BABEL file-wide property lines |
Date: | Sat, 22 Oct 2011 09:58:43 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
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.
Yours, Christian
[Prev in Thread] | Current Thread | [Next in Thread] |