From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noah Slater Subject: Re: Sorting nodes by clocked time Date: Thu, 17 Apr 2014 16:42:34 +0200 Message-ID: References: <87zjjk5p9q.fsf@bzg.ath.cx> <87ioq82pk9.fsf@bzg.ath.cx> <87a9bk2pbc.fsf@bzg.ath.cx> <87lhv442xy.fsf@bzg.ath.cx> <87mwfkb26u.fsf@bzg.ath.cx> <87eh0wb0qh.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303a2d61328aab04f73e0bb1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WanWc-0001ET-VO for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 10:42:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WanWN-0007xW-Ju for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 10:42:50 -0400 Received: from mail-yh0-x235.google.com ([2607:f8b0:4002:c01::235]:47543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WanWN-0007xK-Cz for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 10:42:35 -0400 Received: by mail-yh0-f53.google.com with SMTP id i57so426804yha.26 for ; Thu, 17 Apr 2014 07:42:34 -0700 (PDT) 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: Bastien Cc: emacs-orgmode@gnu.org --20cf303a2d61328aab04f73e0bb1 Content-Type: text/plain; charset=ISO-8859-1 Using this a bit, it doesn't quite do what I want it to do. Is there any way to sort recursively? At the moment, calling org-sort-entries on the whole buffer only sorts the top level nodes. On 17 April 2014 14:45, Noah Slater wrote: > Actually, I renamed this my-overview, added (org-clock-display), and bound > it to C-c o. Very swish. > > > On 17 April 2014 14:34, Noah Slater wrote: > >> I came up with this: >> >> (defun my-sort-buffer () >> (interactive) >> (mark-whole-buffer) >> (org-sort-entries t ?K) >> (org-overview)) >> >> Seems to do what I want. This is most excellent. Making some great >> progress here. Thanks. And I will send you a token of my gratitude at the >> end of the month, when I have funds available. >> >> >> >> >> On 17 April 2014 14:26, Bastien wrote: >> >>> Noah Slater writes: >>> >>> > Okay, wow. Thanks for writing that. Do you have a Gittip or >>> > something? I would love to support your OSS work in some way or >>> > otherwise show my gratitude beyond words in an email! >>> >>> You can use my paypal account: bastien.guerry@free.fr >>> >>> Thanks! >>> >>> > Anyway. I tried your function and it works. But afterwards, the node >>> > is completely folded. So I added (org-cycle) to the sequence of >>> > functions inside save-restriction. That seems to work, but I'm no >>> > elisp/Org pro. Is this how you would have done it? >>> >>> Well, quite long explanations would follow... I'll let you discover by >>> reading the code and by trial-and-error for now, need to run! >>> >>> -- >>> Bastien >>> >> >> > --20cf303a2d61328aab04f73e0bb1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Using this a bit, it doesn't quite do what I want it t= o do.

Is there any way to sort recursively?
At the moment, calling org-sort-entries on the whole buffer on= ly sorts the top level nodes.


On 17 A= pril 2014 14:45, Noah Slater <nslater@tumbolia.org> wrote= :
Actually, I renamed this my-overview, added=A0(org-clock-d= isplay), and bound it to C-c o. Very swish.


On 17 April 2014 14:34, Noah Slater <nslater@tumbolia.org> wrote:
I came up with this:
(defun my-sort-buffer ()
=A0 (interactive)
=A0 (mark-whole-buffer)
=A0 (org-sort-entries t ?K)
=A0= (org-overview))

Seems to do what I want. This is most excellent. Making some= great progress here. Thanks. And I will send you a token of my gratitude a= t the end of the month, when I have funds available.=A0




On 17 April 2014 14:26, Bastien <bzg@gnu.org> wr= ote:
Noah Slater <nslater@tumbolia.org> writes:

> Okay, wow. Thanks for writing that. Do you have a Gittip or
> something? I would love to support your OSS work in some way or
> otherwise show my gratitude beyond words in an email!

You can use my paypal account: bastien.guerry@free.fr

Thanks!

> Anyway. I tried your function and it works. But afterwards, the node > is completely folded. So I added (org-cycle) to the sequence of
> functions inside=A0save-restriction. That seems to work, but I'm n= o
> elisp/Org pro. Is this how you would have done it?

Well, quite long explanations would follow... I'll let you discov= er by
reading the code and by trial-and-error for now, need to run!

--
=A0Bastien



--20cf303a2d61328aab04f73e0bb1--