emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] getting todo-keywords from org-element-property


From: Matt Price
Subject: Re: [O] getting todo-keywords from org-element-property
Date: Sat, 18 Jul 2015 16:04:26 -0400



On Sat, Jul 18, 2015 at 3:59 PM, Nicolas Goaziou <address@hidden> wrote:
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).

ah, that was the problem, thank you as always nicolas!
m

Regards,

--
Nicolas Goaziou


reply via email to

[Prev in Thread] Current Thread [Next in Thread]