emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] custom sorting of agenda items


From: Ilya Shlyakhter
Subject: Re: [Orgmode] custom sorting of agenda items
Date: Wed, 4 Aug 2010 19:01:35 -0400

When giving a user-defined function for org-agenda-cmp-user-defined,
the function gets two agenda entries.   Is there a way from an agenda entry
to get to the original org entry?

Best would be if, besides a user-defined sort function, you could also provide
a function that takes the org entry and the agenda item (i.e. is run with point
on the org entry and is passed the agenda item), and can then store anything
it wants about the org entry as text properties on the agenda item.
The companion user-defined sorting function could then use these stored
text properties for ordering the agenda items.   Could you add such a hook?

thanks,

ilya

On Wed, Aug 4, 2010 at 6:51 PM, Bastien <address@hidden> wrote:
> Hi Ilya,
>
> Ilya Shlyakhter <address@hidden> writes:
>
>> I'd like to sort agenda entries in a custom agenda view by the value
>> of a text property that I put on the headlines.
>> Is there a way to do that?
>
> Well, no.
>
> Maybe playing around with org-map-entries could yield some result.
>
> --
>  Bastien
>



reply via email to

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