On 2014-04-18 15:21, Bastien <b...@gnu.org> writes:

> Hi Alan,
>
> Alan Schmitt <alan.schm...@polytechnique.org> writes:
>
>> More precisely, given this:
>>
>> ,-----------------------------------------------------------------
>> | (defun org-review-schedule-compare (a b)                        
>> |   "Compares the date of scheduled review for the two agenda     
>> |   entries. Returns +1 if A has been scheduled for longer, nil if
>> |   they have been scheduled for the same length of time, and -1  
>> |   otherwise."                                                   
>> |   ())                                                           
>> `-----------------------------------------------------------------
>>
>> how can I access a property of `a' and `b'?
>
> See how `org-cmp-alpha' works.

Thank you for the suggestion, this is good inspiration.

>> (The documentation tells me they are "agenda entries", but it's not
>> clear how I can access their information.)
>
> You can access agenda entries information by text properties.
>
> Create an agenda view, then C-u C-x = on some entry: you will see
> the list of available text properties that you can manipulate.

Thanks a lot, I'm able to get the information I need, thanks to
`org-marker' and `org-entry-get'.

Alan

Reply via email to