From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: getting todo-keywords from org-element-property Date: Sat, 18 Jul 2015 13:41:12 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c296788127bf051b29cfea Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGW6s-0008PS-Kv for emacs-orgmode@gnu.org; Sat, 18 Jul 2015 13:41:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGW6r-0002kT-OK for emacs-orgmode@gnu.org; Sat, 18 Jul 2015 13:41:14 -0400 Received: from mail-vn0-x232.google.com ([2607:f8b0:400c:c0f::232]:34465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGW6r-0002jr-K4 for emacs-orgmode@gnu.org; Sat, 18 Jul 2015 13:41:13 -0400 Received: by vnds125 with SMTP id s125so10873364vnd.1 for ; Sat, 18 Jul 2015 10:41:12 -0700 (PDT) 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: Org Mode --001a11c296788127bf051b29cfea Content-Type: text/plain; charset=UTF-8 I don't understand how to extract todo-keyword values from a headline using org-element-property. I am trying something like this: (org-element-map (org-element-parse-buffer) 'headline (lambda (item) (print (nth 0 (org-element-property :todo-keyword item))) (when (eq (org-element-property :todo-keyword item) "READY") --001a11c296788127bf051b29cfea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I don't understand how to extract todo-keyword va= lues from a headline using org-element-property.=C2=A0

I am t= rying something like this:

=C2=A0(org-element-map (org-element-parse= -buffer) 'headline
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = (lambda (item)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (print (nth 0 (org-element-property :todo-keyword item)))
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (when (eq (org-el= ement-property :todo-keyword item) "READY")

--001a11c296788127bf051b29cfea--