[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How do I define `org-agenda-cmp-user-defined'?
From: |
Alan Schmitt |
Subject: |
Re: [O] How do I define `org-agenda-cmp-user-defined'? |
Date: |
Fri, 18 Apr 2014 19:14:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
On 2014-04-18 15:21, Bastien <address@hidden> writes:
> Hi Alan,
>
> Alan Schmitt <address@hidden> 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