From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: How do I define `org-agenda-cmp-user-defined'? Date: Fri, 18 Apr 2014 19:14:13 +0200 Message-ID: References: <87wqemkc36.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbDA3-0006rN-3X for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 14:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbD9v-0006nS-7B for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 14:05:15 -0400 In-Reply-To: <87wqemkc36.fsf@bzg.ath.cx> (Bastien's message of "Fri, 18 Apr 2014 15:21:17 +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: Bastien Cc: emacs-orgmode On 2014-04-18 15:21, Bastien writes: > 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. Thank you for the suggestion, this is good inspiration. >> (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. Thanks a lot, I'm able to get the information I need, thanks to `org-marker' and `org-entry-get'. Alan