Hello,
Matt Price <moptop99@gmail.com> 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