From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: Re: custom sorting of agenda items Date: Wed, 4 Aug 2010 19:01:35 -0400 Message-ID: References: <87r5ie2dpx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=47241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ogmxu-0001pK-EF for emacs-orgmode@gnu.org; Wed, 04 Aug 2010 19:01:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ogmxt-0001YL-5h for emacs-orgmode@gnu.org; Wed, 04 Aug 2010 19:01:38 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48919) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogmxs-0001YB-VL for emacs-orgmode@gnu.org; Wed, 04 Aug 2010 19:01:37 -0400 Received: by wwi14 with SMTP id 14so6904700wwi.30 for ; Wed, 04 Aug 2010 16:01:36 -0700 (PDT) In-Reply-To: <87r5ie2dpx.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode 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 prov= ide a function that takes the org entry and the agenda item (i.e. is run with p= oint on the org entry and is passed the agenda item), and can then store anythin= g 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 wrote= : > Hi Ilya, > > Ilya Shlyakhter 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. > > -- > =A0Bastien >