From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: user-defined agenda sorting
Date: Tue, 16 Jun 2009 01:57:05 -0700 [thread overview]
Message-ID: <20524da70906160157u518e2cf5tc6cc795de6bbf64@mail.gmail.com> (raw)
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
next reply other threads:[~2009-06-16 8:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-16 8:57 Samuel Wales [this message]
2009-06-16 9:13 ` user-defined agenda sorting Samuel Wales
2009-06-19 15:39 ` Carsten Dominik
2009-06-19 20:00 ` Samuel Wales
2009-06-20 4:12 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20524da70906160157u518e2cf5tc6cc795de6bbf64@mail.gmail.com \
--to=samologist@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.