From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: Agenda TODO sorting by date Date: Sat, 3 Mar 2012 08:38:32 -0800 Message-ID: References: <87pqcu4duz.wl%jamshark70@dewdrop-world.net> <87399qielx.fsf@norang.ca> <87399pzm9w.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636ed6bda143aa204ba5954cc Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3ryz-0003Va-Cc for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 11:38:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3ryx-00069h-7E for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 11:38:56 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:46459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3ryw-00069V-V7 for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 11:38:55 -0500 Received: by ghrr18 with SMTP id r18so1426279ghr.0 for ; Sat, 03 Mar 2012 08:38:52 -0800 (PST) In-Reply-To: <87399pzm9w.wl%jamshark70@dewdrop-world.net> 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: James Harkins Cc: Bernt Hansen , emacs-orgmode@gnu.org --001636ed6bda143aa204ba5954cc Content-Type: text/plain; charset=ISO-8859-1 I am definitely not a programmer, and for sure not the one who could guide you on writing a sort function. HOWEVER, emacs has a really nice facility for doing so, if you decide you want to try that. I had to write a program to alphabetize a lexical list in Chuukese, in an arbitrary order other than standard english alphabetical order. I had to have guidance, but it was certainly possible, even for me. Just some encouragement, but it's been many years, and i am unable to offer more than that. http://www.gnu.org/software/emacs/manual/html_node/elisp/Sorting.html Alan On Sat, Mar 3, 2012 at 8:23 AM, James Harkins wrote: > At Fri, 02 Mar 2012 21:48:42 -0500, > Bernt Hansen wrote: > > You could write a custom sorting function that parses out the date from > > the heading and compares them. There may be a better way to do this > > that I'm not aware of for this. > > > > Set this function up in org-agenda-cmp-user-defined and > > org-agenda-sorting-strategy to get the results you want. > > OK, thanks. I was starting to think it would come to that. Kind of > surprising this isn't offered out of the box. > > I think I need a bit more guidance, from you or someone else. > > > parses out the date from the heading > > Is there already an org function to do this? C-h a searches on the > following yielded nothing that seemed interesting. > > org.*date.* > org.*timestamp.* > > > compares them > > I was about to make that more complicated, but actually string comparison > should be fine for this. No worries there. > > I have done rather little with emacs-lisp so... this is uphill for me. > Thanks. > > James > > > -- > James Harkins /// dewdrop world > jamshark70@dewdrop-world.net > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > > blog: http://www.dewdrop-world.net/words > audio clips: http://www.dewdrop-world.net/audio > more audio: http://soundcloud.com/dewdrop_world/tracks > > --001636ed6bda143aa204ba5954cc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am definitely not a programmer, and for sure not the one who could guide = you on writing a sort function.=A0 HOWEVER, emacs has a really nice facilit= y for doing so, if you decide you want to try that.=A0

I had to wri= te a program to alphabetize a lexical list in Chuukese, in an arbitrary ord= er other than standard english alphabetical order.=A0 I had to have guidanc= e, but it was certainly possible, even for me.

Just some encouragement, but it's been many years, and i am unable = to offer more than that.
=A0
http://www.gnu.org/software/emacs= /manual/html_node/elisp/Sorting.html

Alan

On Sat, Mar 3, 2012 at 8:23 AM, = James Harkins <jamshark70@gmail.com> wrote:
At Fri, 02 Mar 2012 21:48:42 -0500,
Bernt Hansen wrote:
> You could write a custom sorting function that parses out the date fro= m
> the heading and compares them. =A0There may be a better way to do this=
> that I'm not aware of for this.
>
> Set this function up in org-agenda-cmp-user-defined and
> org-agenda-sorting-strategy to get the results you want.

OK, thanks. I was starting to think it would come to that. Kind of su= rprising this isn't offered out of the box.

I think I need a bit more guidance, from you or someone else.

> parses out the date from the heading

Is there already an org function to do this? C-h a searches on the fo= llowing yielded nothing that seemed interesting.

org.*date.*
org.*timestamp.*

> compares them

I was about to make that more complicated, but actually string comparison s= hould be fine for this. No worries there.

I have done rather little with emacs-lisp so... this is uphill for me. Than= ks.

James


--
James Harkins /// dewdrop world
jamshark70@dewdrop-world.ne= t
http://www.dewdr= op-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." =A0-- Whitman

blog: http= ://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks


--001636ed6bda143aa204ba5954cc--