emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How do I define `org-agenda-cmp-user-defined'?
@ 2014-04-18 11:20 Alan Schmitt
  2014-04-18 13:21 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2014-04-18 11:20 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-18 18:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-18 11:20 How do I define `org-agenda-cmp-user-defined'? Alan Schmitt
2014-04-18 13:21 ` Bastien
2014-04-18 17:14   ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).