From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [org-babel] How to refer to a specific property when it is defined multiple times? Date: Fri, 26 Mar 2010 10:34:39 -0600 Message-ID: <87y6hfyrc0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvCUj-0000ST-Nn for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 12:34:49 -0400 Received: from [140.186.70.92] (port=34126 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvCUi-0000RA-5w for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 12:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvCUd-0003Lh-F5 for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 12:34:47 -0400 Received: from mail-px0-f179.google.com ([209.85.216.179]:38236) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvCUd-0003Lb-Ao for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 12:34:43 -0400 Received: by pxi9 with SMTP id 9so2236804pxi.6 for ; Fri, 26 Mar 2010 09:34:42 -0700 (PDT) In-Reply-To: (Julien Fantin's message of "Fri, 26 Mar 2010 16:54:08 +0100") 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: Julien Fantin Cc: emacs-orgmode@gnu.org Hi Julien, Is the following alternative sufficient? * 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=(car (org-property-values "BUSY_PROPERTY")) test #+end_src #+results: : BBB #+begin_src emacs-lisp :var test=(cadr (org-property-values "BUSY_PROPERTY")) test #+end_src #+results: : AAA Julien Fantin writes: > 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 > _______________________________________________ > 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