On Sat, Jul 18, 2015 at 3:59 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Matt Price <mopto...@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).
>
> ah, that was the problem, thank you as always nicolas!
m

>
> Regards,
>
> --
> Nicolas Goaziou
>

Reply via email to