emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How do I define `org-agenda-cmp-user-defined'?


From: Bastien
Subject: Re: [O] How do I define `org-agenda-cmp-user-defined'?
Date: Fri, 18 Apr 2014 15:21:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Hi Alan,

Alan Schmitt <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]