From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: How do I define `org-agenda-cmp-user-defined'? Date: Fri, 18 Apr 2014 13:20:29 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb6qS-0001yJ-Ei for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 07:20:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wb6qK-0000Pf-UZ for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 07:20:36 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:25147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb6qK-0000PX-Nj for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 07:20:28 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hello, I'm working on a way to schedule reviews of projects, and I would like to have them ordered by age in an agenda view. It seems that I want to write my own `org-agenda-cmp-user-defined' function to do so. Unfortunately I cannot find an example of such a function. More precisely, given this: ,----------------------------------------------------------------- | (defun org-review-schedule-compare (a b) | "Compares the date of scheduled review for the two agenda | entries. Returns +1 if A has been scheduled for longer, nil if | they have been scheduled for the same length of time, and -1 | otherwise." | ()) `----------------------------------------------------------------- how can I access a property of `a' and `b'? (The documentation tells me they are "agenda entries", but it's not clear how I can access their information.) Thanks a lot, Alan