From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [ANN] BREAKING CHANGE -- removing #+BABEL file-wide property lines Date: Mon, 24 Oct 2011 11:44:07 +0200 Message-ID: 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> <4EA277B3.7090600@christianmoe.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016369fa10a9f072e04b008437d Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIH4k-0006SR-Dy for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 05:44:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIH4i-0002xk-TT for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 05:44:10 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:46507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIH4i-0002xg-QD for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 05:44:08 -0400 Received: by qyk30 with SMTP id 30so5570479qyk.0 for ; Mon, 24 Oct 2011 02:44:07 -0700 (PDT) In-Reply-To: <4EA277B3.7090600@christianmoe.com> 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: mail@christianmoe.com Cc: Sebastien Vauban , emacs-orgmode@gnu.org --0016369fa10a9f072e04b008437d Content-Type: text/plain; charset=ISO-8859-1 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 --0016369fa10a9f072e04b008437d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sat, Oct 22, 2011 at 9:58 AM, Christi= an 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=3D0
#+BABEL: :var SVNVERSION=3D(vc-working-revision (buffer-file-name))<= br> #+BABEL: :var SVNSTATE=3D( symbol-name (vc-state (or (buffer-file-name)
org-current-export-file)))
#+BABEL: :var SVNSTATENUM=3D(if (eq (vc-state (or (buffer-file-name)
org-current-export-file)) 'up-to-date) 0 13)
#+BABEL: :var DISP_PACKAGE=3D"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= 9;d bite the bullet and transform them into #+HEADERS lines for the first s= rc 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

=A0

Yours,
Christian














--
Rainer M. Krug, = PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phy= s. (Germany)

Centre of Excellence for Invasion Biology
Stellenbos= ch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44
Cell: =A0 = =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 =A0 =A0 +33 - (0)9 58 10 27 = 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44

email: =A0 =A0 = =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0RMkrug

--0016369fa10a9f072e04b008437d--