From mboxrd@z Thu Jan 1 00:00:00 1970 From: "D. C. Toedt" Subject: Re: Get :PROPERTY: value from drawer in other heading during HTML export? Date: Fri, 12 Sep 2014 14:37:56 -0500 Message-ID: References: <87tx4cpsjr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136b2b6632fe90502e36edf Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWg5-0004Aw-2Y for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSWg1-0005Ai-8f for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:38:41 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:36342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSWg1-0005AT-3Y for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 15:38:37 -0400 Received: by mail-vc0-f174.google.com with SMTP id hy10so1199050vcb.33 for ; Fri, 12 Sep 2014 12:38:36 -0700 (PDT) In-Reply-To: <87tx4cpsjr.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: "D. C. Toedt" , emacs-orgmode@gnu.org --001a1136b2b6632fe90502e36edf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Beautiful -- thanks! Is there any documentation I can read to get a sense of how things work? I've done a little bit of browsing inside org.el and its comments, but that seems like it's not the most effective way to get up to speed. Regards, --D. C. *D*ell *C*harles "D. C." Toedt III *(my** last name is pronounced "Tate") = * Attorney and neutral arbitrator -- tech contracts and intellectual property Lecturer, University of Houston Law Center =E2=80=8BEditor, =E2=80=8B=E2=80=8B=E2=80=8BCommon Draft project: A readable library of best-practices contract clauses, with extensive citations and commentary, updated often. dc@toedt.com LinkedIn: dctoedt Calendar (redacted) O: +1 (713) 364-6545 C: +1 (713) 516-8968 =E2=80=8B=E2=80=8B =E2=80=8B Houston, Texas (Central time zone) Unless expressly stated otherwise, this message is not intended to serve as an electronic signature nor as assent to an agreement. On Fri, Sep 12, 2014 at 2:06 PM, Nicolas Goaziou wrote: > Hello, > > "D. C. Toedt" writes: > > > When generating an HTML file from an org-mode document, I'd like to do = a > > GET operation to retrieve a property value from the drawer of an > arbitrary > > heading, using the CUSTOM_ID property to identify the heading. From > > Google-searching, I suspect that "org-heading-components" will be > involved, > > but I'm not proficient enough in elisp to be able to figure out how to > use > > it from the on-line examples I've found --- and I'm not proficient enou= gh > > in Emacs to use any built-in documentation about it ("apropos" doesn't > > produce any results). > > > > [...] > > > #+MACRO: get-title [omitted -- thanks to Nicolas Goaziou for the > get-title > > macro, at > > > > https://lists.gnu.org/archive/html/emacs-orgmode/2014-02/msg00386.html] > > You can use the same macro, replacing > > (org-get-heading nil nil) > > with > > (org-entry-get (point) "$2") > > IOW, > > #+MACRO: GET-PROP (eval (or (save-excursion (ignore-errors (let > ((org-link-search-inhibit-query t)) (org-open-link-from-string "[[#$1]]") > (org-entry-get (point) "$2")))) "UNKNOWN VALUE")) > > > Regards, > > -- > Nicolas Goaziou > --001a1136b2b6632fe90502e36edf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Beautiful -- thanks!

Is there any documentation I can read to= get a sense of how things work? =C2=A0I've done a little bit of browsi= ng inside org.el and its comments, but that seems like it's not the mos= t effective way to get up to speed.
<= br clear=3D"all">

<= div title=3D"signature">Regards,

--D. C.=C2=A0

=
Dell Charles "D. C." Toedt III=C2=A0=C2=A0(my= =C2=A0last name is p= ronounced "Tate")=C2=A0
Attorney and neutr= al arbitrator -- tech contracts and intellectual property
= Le= cturer, University of Houston Law Center
=E2=80=8BEditor, =E2=80=8B<= /font>=E2=80=8B=E2=80=8BCommon Dr= aft=C2=A0project: =C2=A0A readable library of best-practices con= tract clauses,
=C2=A0 =C2=A0 =C2=A0with extensive citations and comment= ary, updated often.
dc@toedt.com=C2=A0 =C2=A0 =C2=A0<= span style=3D"font-family:arial,helvetica,sans-serif">LinkedIn:=C2=A0dctoedt=C2=A0 =C2=A0=C2= =A0Calendar=C2=A0(redacted)
O: +1 (713) 364-6= 545 =C2=A0 =C2=A0C: +1 (713) 516-8968
=E2=80=8B=E2=80=8B
=C2=A0 =C2= =A0=C2=A0
=E2=80=8B
Houston, Texas (Central time zone)

Unless expressly stated otherwise, this message is not= intended=C2=A0
to serve as an e= lectronic signature nor as=C2=A0assent to an agreement.




--001a1136b2b6632fe90502e36edf--