From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gauland Subject: Re: Accessing properties in code blocks Date: Fri, 10 Jan 2020 12:26:22 +1300 Message-ID: <1dfaa566-7e98-fbdb-e821-8e32909d1c73@gmail.com> References: <0B9BEF62-CCEB-4E1A-9FE6-487B797881C2@gmail.com> <1BB9B10D-9420-4AB8-BFD9-F5A3DF4BA242@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------4F9D9931D26679297C989AEA" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40399) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iphAg-00069Q-Te for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 18:25:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iphAf-0000wU-JX for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 18:24:58 -0500 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:33865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iphAf-0000rg-Bi for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 18:24:57 -0500 Received: by mail-pg1-x52a.google.com with SMTP id r11so60539pgf.1 for ; Thu, 09 Jan 2020 15:24:57 -0800 (PST) In-Reply-To: <1BB9B10D-9420-4AB8-BFD9-F5A3DF4BA242@gmail.com> Content-Language: en-US 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: sergio ruiz Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------4F9D9931D26679297C989AEA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Looking at git, it seems that was introduced in 9.2. On 10/01/2020 10:32 am, sergio ruiz wrote: > I am getting: > > eval: Symbol’s function definition is void: org-macro--get-property > > I am using: > > Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ > /Applications/Emacs.app/Contents/Resources/lisp/org/) > Mark set > > Is this a newer function? > > Thanks! > > > >> You can use elisp code to look up the property you want to pass as a >> variable: >> >> #+BEGIN_SRC shell :var url=(org-macro--get-property "url" "") >> curl $url >> #+END_SRC >> >> > > ---- > peace, > sergio > photographer, journalist, visionary > > Public Key: > https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 > #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV > @sergio_101@mastodon.social > https://sergio101.com > http://www.codeandmusic.com > http://www.twitter.com/sergio_101 > http://www.facebook.com/sergio101 > --------------4F9D9931D26679297C989AEA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Looking at git, it seems that was introduced in 9.2.

On 10/01/2020 10:32 am, sergio ruiz wrote:
I am getting:

eval: Symbol’s function definition is void: org-macro--get-property

I am using:

Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)
Mark set

Is this a newer function?

Thanks!



You can use elisp code to look up the property you want to pass as a variable:

#+BEGIN_SRC shell :var url=(org-macro--get-property "url" "")
curl $url
#+END_SRC




--------------4F9D9931D26679297C989AEA--