From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Fantin Subject: [org-babel] How to refer to a specific property when it is defined multiple times? Date: Fri, 26 Mar 2010 16:54:08 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0370863099==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvBrl-0006s5-3U for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 11:54:33 -0400 Received: from [140.186.70.92] (port=37938 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvBrj-0006rE-P2 for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 11:54:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvBri-0005Hs-Dx for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 11:54:31 -0400 Received: from mail-ew0-f227.google.com ([209.85.219.227]:33287) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvBri-0005HI-9e for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 11:54:30 -0400 Received: by ewy27 with SMTP id 27so190111ewy.30 for ; Fri, 26 Mar 2010 08:54:28 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0370863099== Content-Type: multipart/alternative; boundary=00c09f8a5560a2fb380482b62d74 --00c09f8a5560a2fb380482b62d74 Content-Type: text/plain; charset=UTF-8 Consider the following : * heading A :PROPERTIES: :BUSY_PROPERTY: AAA :END: * heading B :PROPERTIES: :BUSY_PROPERTY: BBB :END: #+begin_src emacs-lisp :var test=(org-entry-get nil "BUSY_PROPERTY" t) test #+end_src #+results: : BBB #+begin_src emacs-lisp :var test=(org-property-values "BUSY_PROPERTY") test #+end_src #+results: | BBB | AAA | Is there a way I can refer to my BUSY_PROPERTY, in the context of particular heading ? Has shown above, I can not get a reference to the heading it was defined in. Is there a way to deal with those namespacing conerns right now ? Note : This emacs-lisp evaluation in src headers has only been recently implemented by Eric schulte. cheers --00c09f8a5560a2fb380482b62d74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Consider the following :
=C2=A0
* heading A
:P= ROPERTIES:
:BUSY_PROPERTY: AAA
:END:
* headin= g B
:PROPERTIES:
:BUSY_PROPERTY: BBB
:END:

#+begin_src emacs-lisp=C2=A0=C2=A0:var test=3D(or= g-entry-get nil "BUSY_PROPERTY" t)
test
#+end= _src
#+results:
: BBB

#+begin_= src emacs-lisp=C2=A0=C2=A0:var test=3D(org-property-values "BUSY_PROPE= RTY")
test
#+end_src
#+results:
| BBB | AAA |<= /div>


Is there a way I can refer to my BU= SY_PROPERTY, in the context of particular heading ?
Has shown abo= ve, I can not get a reference to the heading it was defined in.
Is there a way to deal with those namespacing conerns right now ?

Note : This emacs-lisp evaluation in src headers has o= nly been recently implemented by Eric schulte.

cheers
--00c09f8a5560a2fb380482b62d74-- --===============0370863099== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0370863099==--