From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: two sets of default header arguments for one language Date: Fri, 11 Sep 2015 09:09:01 +0200 Message-ID: References: <5043E6AE-A82F-4F2A-8486-7826BA466703@gmail.com> <87r3m6q85a.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaISR-0002Eb-20 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 03:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaISM-0000ql-2v for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 03:09:14 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:33390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaISL-0000qh-S9 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 03:09:09 -0400 Received: by wiclk2 with SMTP id lk2so53168498wic.0 for ; Fri, 11 Sep 2015 00:09:09 -0700 (PDT) In-Reply-To: <87r3m6q85a.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 10 Sep 2015 23:25:21 +0200") 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: Alan Schmitt , emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Hello, > > Rainer M Krug writes: > >> Do macros work for properties ? If yes, you could degine two macro, >> one for each set of properties. > > No, they don't. That's a pity. It would be really great if one could define different sets of hearer-args and then, at thr beginning of a code block, simply use: #+MACRO: forTangle :tangle ./test.R :export none #+MACRO: forExecution :tangle no :export both :session Test14 #+MACRO: forNoSession :tangle no :export both #+:header-args {{{forTangle}}} #+begin_src R :tangle no cat(13) #+end_src #+:header-args {{{forExecution}}} #+begin_src R :tangle no cat(14) #+end_src #+:header-args {{{forNoSession}}} #+begin_src R :tangle no cat(14) #+end_src This would make it much easier to work with header-args and solve many problems which were discussed in earlier threads. The example might not be the best as it could be implemented by header-args+ but if the code blocks using the different sets of header-args are at different locations in the org document, changing them would be much easier with macro expansion (or similar). Would it be difficult to include this feature? Thanks, Rainer > > Regards, =2D-=20 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 : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJV8n4RAAoJENvXNx4PUvmCRzQH/AuJvhQsMAsvOGSxjLnoupH+ 9iF9P/rT1689whAnKqr8ZU2V7kPF9O1R1O7EVOeoXKq891sd8I+cqrM5TrAR1QWx BTcOHtL9KkbzrxGguKknTg82w/Ot6y+DdYsJICxNXTYXww/D5nIV/uNQqBthtD3t RynAx+dvLF8tYXKVSbn5t9AHwGEJaA+ngkLf2CGWkjyXpv/cq+6AiQwCQTxMM74V 3PD2BnZFLtpDb1yqMaFafiYh3XI7RpzEk9gxpGSDFl1WSLCAkKruoRIeFoVDR+xe E+UAgqzCx4upZkqnzncABPLbZUc8cpmVOfWOEw/ZH0dXWaQyjDXgQEqD/C0cSDo= =QmQ9 -----END PGP SIGNATURE----- --=-=-=--