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 14:34:38 +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=089e0158c41cae4c3d04f73c41e2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WalWe-0008Nv-7S for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 08:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WalWZ-0005lg-IB for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 08:34:44 -0400 Received: from mail-yh0-x231.google.com ([2607:f8b0:4002:c01::231]:65264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WalWZ-0005lX-C3 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 08:34:39 -0400 Received: by mail-yh0-f49.google.com with SMTP id z6so270287yhz.22 for ; Thu, 17 Apr 2014 05:34:38 -0700 (PDT) In-Reply-To: <87eh0wb0qh.fsf@bzg.ath.cx> 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 --089e0158c41cae4c3d04f73c41e2 Content-Type: text/plain; charset=ISO-8859-1 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 > --089e0158c41cae4c3d04f73c41e2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I came up with this:

(defun my-sor= t-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> wrote:
Noah Slater <nsl= ater@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

--089e0158c41cae4c3d04f73c41e2--