emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: user-defined agenda sorting


From: Samuel Wales
Subject: [Orgmode] Re: user-defined agenda sorting
Date: Tue, 16 Jun 2009 02:13:36 -0700

If my skills at cargo-cult programming can summon the air force, then
(get-text-property 1 'priority a/b] will work.  But I'm not sure if
there are functions for parsing tags etc.  Testing seems difficult as
cut and paste of headline strings seems to not include properties.

Thanks.

On Tue, Jun 16, 2009 at 01:57, Samuel Wales<address@hidden> wrote:
> I have a sort comparison function for the outline, which
> returns a number.  This works well.
>
> The documentation for user-defined agenda sorting says "This
> function must receive two arguments, agenda entry a and b."
> I am not sure what a and b are, strings?
>
> My function gets priorities, tags, and todo kw assuming point is on a
> headline.  It uses org functions to get those.  The org code for
> agenda sorting uses text properties.
>
> How to adapt my function to get the following information: priorities
> as [?A..?C], inherited and local tags as a list, and todo kw as a
> string?
>
> Is there a place where how to parse a and b is documented?
>
> Thanks.
>
> --
> Myalgic encephalomyelitis denialism is causing death and severe suffering,
> worse than MS.  Conflicts of interest are destroying research.  /You/ can
> get the disease at any time permanently.  Do science and justice matter to
> you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
>



-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering,
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm




reply via email to

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