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: Nicolas Goaziou
Subject: Re: [O] getting todo-keywords from org-element-property
Date: Sat, 18 Jul 2015 21:59:34 +0200

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



reply via email to

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