|
From: | Matt Price |
Subject: | Re: [O] getting todo-keywords from org-element-property |
Date: | Sat, 18 Jul 2015 16:04:26 -0400 |
Hello,
Matt Price <address@hidden> writes:
> 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)))
(org-element-property :todo-keyword item) returns a string, so `nth'
doesn't make sense in this situation.
> (when (eq (org-element-property :todo-keyword item) "READY")
Strings cannot be compared with `eq'. You need `equal' (or string=
although they are not equivalent).
Regards,
--
Nicolas Goaziou
[Prev in Thread] | Current Thread | [Next in Thread] |