From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: user-defined agenda sorting Date: Tue, 16 Jun 2009 01:57:05 -0700 Message-ID: <20524da70906160157u518e2cf5tc6cc795de6bbf64@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGUU2-0005pm-DF for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 04:57:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGUTx-0005ou-Mv for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 04:57:33 -0400 Received: from [199.232.76.173] (port=46793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGUTx-0005oq-GF for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 04:57:29 -0400 Received: from mail-pz0-f203.google.com ([209.85.222.203]:52519) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGUTw-0002Yb-Tn for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 04:57:29 -0400 Received: by pzk41 with SMTP id 41so245952pzk.14 for ; Tue, 16 Jun 2009 01:57:25 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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