From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Subtree-specific variables Date: Fri, 8 May 2015 21:41:28 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_aedc2122-7f7b-4a2a-afd5-b38c82b5cc43_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YquoU-0003Ge-61 for emacs-orgmode@gnu.org; Fri, 08 May 2015 22:48:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yquhm-00082a-St for emacs-orgmode@gnu.org; Fri, 08 May 2015 22:41:35 -0400 Received: from col004-omc1s15.hotmail.com ([65.55.34.25]:55166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yquhm-00082I-N7 for emacs-orgmode@gnu.org; Fri, 08 May 2015 22:41:30 -0400 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: "emacs-orgmode@gnu.org" --_aedc2122-7f7b-4a2a-afd5-b38c82b5cc43_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I was wondering if there is a way to have subtree-specific variables? I have been using #+MACRO: but it seems it is a buffer-wide thing. For example=2C it would be great if I can use a property value in org-mode = bodies. Best=2CJoon = --_aedc2122-7f7b-4a2a-afd5-b38c82b5cc43_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C

<= div>I was wondering if there is a way to have subtree-specific variables?

I have been using #+MACRO: but it seems it is a buf= fer-wide thing.

For example=2C it would be great i= f I can =3Buse a property value in org-mode bodies.

Best=2C
Joon
= --_aedc2122-7f7b-4a2a-afd5-b38c82b5cc43_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Subtree-specific variables Date: Sat, 09 May 2015 10:56:44 +0200 Message-ID: <87bnhuxh6b.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr0Xb-00054r-AW for emacs-orgmode@gnu.org; Sat, 09 May 2015 04:55:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yr0Xa-00027E-7m for emacs-orgmode@gnu.org; Sat, 09 May 2015 04:55:23 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:56227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr0Xa-00021X-1n for emacs-orgmode@gnu.org; Sat, 09 May 2015 04:55:22 -0400 In-Reply-To: (Joon Ro's message of "Fri, 8 May 2015 21:41:28 -0500") 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: Joon Ro Cc: "emacs-orgmode@gnu.org" Hello, Joon Ro writes: > I was wondering if there is a way to have subtree-specific variables? Usually, you get subtree specific variables with node properties, appending "EXPORT_" to them, e.g. * Subtree root :PROPERTIES: :EXPORT_AUTHOR: Not me :END: > I have been using #+MACRO: but it seems it is a buffer-wide thing. The suggestion above doesn't apply to MACRO keyword, mainly because properties' values are only one line long. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Subtree-specific variables Date: Sat, 9 May 2015 19:21:59 -0500 Message-ID: References: , <87bnhuxh6b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_b9a4f12f-e25c-4974-9539-59f97700d202_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrF0O-0008Cj-30 for emacs-orgmode@gnu.org; Sat, 09 May 2015 20:22:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrF0K-0000jj-Sh for emacs-orgmode@gnu.org; Sat, 09 May 2015 20:22:04 -0400 Received: from col004-omc4s1.hotmail.com ([65.55.34.203]:62556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrF0K-0000jU-JY for emacs-orgmode@gnu.org; Sat, 09 May 2015 20:22:00 -0400 In-Reply-To: <87bnhuxh6b.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , "emacs-orgmode@gnu.org" --_b9a4f12f-e25c-4974-9539-59f97700d202_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >=20 > Usually=2C you get subtree specific variables with node properties=2C > appending "EXPORT_" to them=2C e.g. >=20 > * Subtree root > :PROPERTIES: > :EXPORT_AUTHOR: Not me > :END: >=20 > > I have been using #+MACRO: but it seems it is a buffer-wide thing. >=20 > The suggestion above doesn't apply to MACRO keyword=2C mainly because > properties' values are only one line long. >=20 Thank you for the reply. I'm aware of EXPORT_ stuff=2C but I'm actually loo= king for something like this: * Subtree root :PROPERTIES: :EXPORT_Variable: Test:END:=20 {{{Variable}}} Would something like this be possible? Best=2CJoon = --_b9a4f12f-e25c-4974-9539-59f97700d202_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>=3B
>=3B Usually= =2C you get subtree specific variables with node properties=2C
>=3B ap= pending "EXPORT_" to them=2C e.g.
>=3B
>=3B * Subtree root
= >=3B :PROPERTIES:
>=3B :EXPORT_AUTHOR: Not me
>=3B :END:<= br>>=3B
>=3B >=3B I have been using #+MACRO: but it seems it is a= buffer-wide thing.
>=3B
>=3B The suggestion above doesn't apply= to MACRO keyword=2C mainly because
>=3B properties' values are only o= ne line long.
>=3B

Thank you for the rep= ly. I'm aware of EXPORT_ stuff=2C but I'm actually looking for something li= ke this:

* Subtree root
:PROPERTIES:
:EXPORT= _Variable: Test
:END: =3B

{{{Variabl= e}}}

Would something like this be possible?
<= div>
Best=2C
Joon
= --_b9a4f12f-e25c-4974-9539-59f97700d202_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Subtree-specific variables Date: Sun, 10 May 2015 09:09:02 +0200 Message-ID: <876180j4dt.fsf@nicolasgoaziou.fr> References: <87bnhuxh6b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrLKu-0005N6-QD for emacs-orgmode@gnu.org; Sun, 10 May 2015 03:07:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrLKs-0003FV-2V for emacs-orgmode@gnu.org; Sun, 10 May 2015 03:07:40 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:44005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrLKr-0003Cj-Sq for emacs-orgmode@gnu.org; Sun, 10 May 2015 03:07:38 -0400 In-Reply-To: (Joon Ro's message of "Sat, 9 May 2015 19:21:59 -0500") 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: Joon Ro Cc: "emacs-orgmode@gnu.org" Joon Ro writes: > Thank you for the reply. I'm aware of EXPORT_ stuff, but I'm actually looking for something like this: > * Subtree root > :PROPERTIES: > :EXPORT_Variable: Test:END: > {{{Variable}}} > Would something like this be possible? > Best,Joon It is: {{{property(EXPORT_Variable)}}} Regards, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Subtree-specific variables Date: Sun, 10 May 2015 12:01:23 -0500 Message-ID: References: , <87bnhuxh6b.fsf@nicolasgoaziou.fr>, , <876180j4dt.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_2854a153-22aa-449c-bec1-0166c5559e12_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrUeS-0006qk-OP for emacs-orgmode@gnu.org; Sun, 10 May 2015 13:04:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrUbV-0004OQ-WB for emacs-orgmode@gnu.org; Sun, 10 May 2015 13:01:33 -0400 Received: from col004-omc4s5.hotmail.com ([65.55.34.207]:54969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrUbV-0004OK-Nl for emacs-orgmode@gnu.org; Sun, 10 May 2015 13:01:25 -0400 In-Reply-To: <876180j4dt.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: "emacs-orgmode@gnu.org" --_2854a153-22aa-449c-bec1-0166c5559e12_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > * Subtree root > > :PROPERTIES: > > :EXPORT_Variable: Test> > :END:=20 > > {{{Variable}}} > > Would something like this be possible? > > Best=2CJoon >=20 > It is: >=20 > {{{property(EXPORT_Variable)}}} >=20 Thank you so much! This will be very useful.=20 One related question - I'm including another subtree (I'm using 8.3beta) us= ing #+INCLUDE: "playground.org::*Contents" :only-contents t but it seems I cannot access the property of the parent heading inside the = included subtree. (Using {{{property(EXPORT_Variable)}}} to access the pare= nt property). Is this not possible? Thank you so much=2CJoon = --_2854a153-22aa-449c-bec1-0166c5559e12_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 =3B>=3B * Subtree ro= ot
>=3B >=3B :PROPERTIES:
>=3B >=3B :EXPORT_Variable: Test
>=3B >=3B :END:
>=3B >=3B {{{Variable}}}
>=3B >= =3B Would something like this be possible?
>=3B >=3B Best=2CJoon
= >=3B
>=3B It is:
>=3B
>=3B {{{property(EXPORT_Variable= )}}}
>=3B

Thank you so much! This will b= e very useful.

One related question - I'm includi= ng another subtree (I'm using 8.3beta) =3Busing

 =3B =3B #+INCLUDE: "playground.org::*Contents" :only-contents t<= /div>

but it seems I cannot access the property of the p= arent heading inside the included subtree. (Using {{{property(EXPORT_Variab= le)}}} to access the parent property). Is this not possible?

=
Thank you so much=2C
Joon

=
= --_2854a153-22aa-449c-bec1-0166c5559e12_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Subtree-specific variables Date: Sun, 10 May 2015 12:05:58 -0500 Message-ID: References: , <87bnhuxh6b.fsf@nicolasgoaziou.fr>, , <876180j4dt.fsf@nicolasgoaziou.fr>, Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_f53b6af8-e806-4386-8d88-30d9e28ad6a5_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrUfz-0007vt-GO for emacs-orgmode@gnu.org; Sun, 10 May 2015 13:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrUfv-00063Y-Er for emacs-orgmode@gnu.org; Sun, 10 May 2015 13:06:03 -0400 Received: from col004-omc4s15.hotmail.com ([65.55.34.217]:63436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrUfv-00063O-6Y for emacs-orgmode@gnu.org; Sun, 10 May 2015 13:05:59 -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: Nicolas Goaziou Cc: "emacs-orgmode@gnu.org" --_f53b6af8-e806-4386-8d88-30d9e28ad6a5_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Oh=2C I forgot to turn on org-use-property-inheritance. Now it works in the= included subtree as well. Thank you so much!From: joon.ro@outlook.com To: mail@nicolasgoaziou.fr CC: emacs-orgmode@gnu.org Subject: RE: Subtree-specific variables Date: Sun=2C 10 May 2015 12:01:23 -0500 > * Subtree root > > :PROPERTIES: > > :EXPORT_Variable: Test> > :END:=20 > > {{{Variable}}} > > Would something like this be possible? > > Best=2CJoon >=20 > It is: >=20 > {{{property(EXPORT_Variable)}}} >=20 Thank you so much! This will be very useful.=20 One related question - I'm including another subtree (I'm using 8.3beta) us= ing #+INCLUDE: "playground.org::*Contents" :only-contents t but it seems I cannot access the property of the parent heading inside the = included subtree. (Using {{{property(EXPORT_Variable)}}} to access the pare= nt property). Is this not possible? Thank you so much=2CJoon = --_f53b6af8-e806-4386-8d88-30d9e28ad6a5_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Oh=2C I forgot to turn on org-us= e-property-inheritance. Now it works in the included subtree as well. Thank= you so much!


From:=3B joon.ro@o= utlook.com
To:=3B mail@nicolasgoaziou.fr
CC:=3B emacs-orgmode@g= nu.org
Subject:=3B RE:=3B Subtree-specific variables
Date:= =3B Sun=2C 10 May 2015 12:=3B01:=3B23 -0500

 =3B>=3B * Subtree root
>=3B >=3B :=3BP= ROPERTIES:=3B
>=3B >=3B :=3BEXPORT_Variable:=3B Test
<= div>>=3B >=3B :=3BEND:=3B
>=3B >=3B {=3B{=3B{= =3BVariable}=3B}=3B}=3B
>=3B >=3B Would something like t= his be possible?
>=3B >=3B Best=2CJoon
>=3B
>=3B It is= 8=3B
>=3B
>=3B {=3B{=3B{=3Bproperty(EXPORT_Variabl= e)}=3B}=3B}=3B
>=3B

Thank yo= u so much! This will be very useful.

One related = question - I'm including another subtree (I'm using 8.3beta) =3Busing

 =3B =3B #+INCLUDE:=3B "=3Bplaygroun= d.org:=3B:=3B*Contents"=3B :=3Bonly-contents t

<= /div>
but it seems I cannot access the property of the parent heading i= nside the included subtree. (Using {=3B{=3B{=3Bproperty(EXPORT_= Variable)}=3B}=3B}=3B to access the parent property). Is this n= ot possible?

Thank you so much=2C
Joon

= --_f53b6af8-e806-4386-8d88-30d9e28ad6a5_--