From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [ANN] BREAKING CHANGE -- removing #+BABEL file-wide property lines Date: Sat, 22 Oct 2011 09:58:43 +0200 Message-ID: <4EA277B3.7090600@christianmoe.com> References: <87pqhrih3s.fsf@gmail.com> <30891.1319141196@alphaville.dokosmarshall.org> <87fwinifqu.fsf@gmail.com> <32184.1319143892@alphaville.dokosmarshall.org> <87zkgvgxe7.fsf@gmail.com> <1405.1319147324@alphaville.dokosmarshall.org> <87zkgvfhra.fsf@gmail.com> <2127.1319148505@alphaville.dokosmarshall.org> <87vcrjfgt1.fsf@gmail.com> <80sjmmvm60.fsf@somewhere.org> <4EA129DB.4070006@christianmoe.com> <8762ji5jr6.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHWR1-0007Bt-Rb for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 03:56:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHWR0-0004yD-OC for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 03:56:03 -0400 Received: from b1.hitrost.net ([91.185.211.67]:51164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHWR0-0004xb-J3 for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 03:56:02 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: Sebastien Vauban , emacs-orgmode@gnu.org 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