From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: Agenda TODO sorting by date Date: Sun, 04 Mar 2012 09:23:25 +0800 Message-ID: <87zkbxxipe.wl%jamshark70@dewdrop-world.net> References: <87pqcu4duz.wl%jamshark70@dewdrop-world.net> <87399qielx.fsf@norang.ca> <87399pzm9w.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S40Aj-0006iN-D7 for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 20:23:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S40Ah-000095-4x for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 20:23:36 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:37265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S40Ag-000090-Tb for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 20:23:35 -0500 Received: by iajr24 with SMTP id r24so4838943iaj.0 for ; Sat, 03 Mar 2012 17:23:32 -0800 (PST) In-Reply-To: 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 E. Davis" Cc: emacs-orgmode@gnu.org At Sat, 3 Mar 2012 08:38:32 -0800, Alan E. Davis wrote: > I am definitely not a programmer, and for sure not the one who could guid= e you on writing a sort > function.=C2=A0 HOWEVER, emacs has a really nice facility for doing so, i= f you decide you want to try > that.=C2=A0 >=20 > I had to write a program to alphabetize a lexical list in Chuukese, in an= arbitrary order other > than standard english alphabetical order.=C2=A0 I had to have guidance, b= ut it was certainly possible, > even for me. >=20 > Just some encouragement, but it's been many years, and i am unable to off= er more than that. > =C2=A0 > http://www.gnu.org/software/emacs/manual/html_node/elisp/Sorting.html Hm, these would sort lines of the buffer after the agenda is created (is th= ere a hook in org to do so?), but the idea is to tell org how to sort befor= e putting the stuff in the agenda buffer. I'm looking for a function that will do this -- given: ** DONE PUSH onFailure arg for waitForBoot <2012-01-31 Tue> and the regexp "<[^>]+>" -- return <2012-01-31 Tue>. I can find emacs lisp functions for regexp search within a buffer (nope), b= ut the point is not to look in a buffer. It's to pass in the source string. Did several google searches, and couldn't find the magic words (search term= s). 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