From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How do I define `org-agenda-cmp-user-defined'? Date: Fri, 18 Apr 2014 15:21:17 +0200 Message-ID: <87wqemkc36.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb8jO-0003li-6S for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 09:21:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wb8jI-0004DT-I0 for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 09:21:26 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:63939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb8jI-0004D9-BG for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 09:21:20 -0400 Received: by mail-we0-f178.google.com with SMTP id u56so1545346wes.37 for ; Fri, 18 Apr 2014 06:21:19 -0700 (PDT) In-Reply-To: (Alan Schmitt's message of "Fri, 18 Apr 2014 13:20:29 +0200") 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: Alan Schmitt Cc: emacs-orgmode Hi Alan, Alan Schmitt writes: > 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'? See how `org-cmp-alpha' works. > (The documentation tells me they are "agenda entries", but it's not > clear how I can access their information.) You can access agenda entries information by text properties. Create an agenda view, then C-u C-x = on some entry: you will see the list of available text properties that you can manipulate. -- Bastien