From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: user-defined agenda sorting Date: Tue, 16 Jun 2009 02:13:36 -0700 Message-ID: <20524da70906160213k55ebc984t92abc4abe3a2fc35@mail.gmail.com> References: <20524da70906160157u518e2cf5tc6cc795de6bbf64@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGUjz-0007oP-Fo for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 05:14:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGUjv-0007mX-0H for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 05:14:03 -0400 Received: from [199.232.76.173] (port=55802 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGUju-0007mR-JB for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 05:13:58 -0400 Received: from mail-pz0-f203.google.com ([209.85.222.203]:51052) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGUjt-0005H2-SW for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 05:13:58 -0400 Received: by pzk41 with SMTP id 41so255011pzk.14 for ; Tue, 16 Jun 2009 02:13:56 -0700 (PDT) In-Reply-To: <20524da70906160157u518e2cf5tc6cc795de6bbf64@mail.gmail.com> 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 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 wrote: > I have a sort comparison function for the outline, which > returns a number. =A0This 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. =A0It uses org functions to get those. =A0The 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. =A0Conflicts of interest are destroying research. =A0/You/= can > get the disease at any time permanently. =A0Do science and justice matter= to > you? =A0http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm > --=20 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