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:45:03 +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=089e0158c41cf16eca04f73c66c6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Walgm-0007cs-1I for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 08:45:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Walgf-000174-0O for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 08:45:11 -0400 Received: from mail-yh0-x22c.google.com ([2607:f8b0:4002:c01::22c]:38719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Walge-00014I-SK for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 08:45:04 -0400 Received: by mail-yh0-f44.google.com with SMTP id f10so284061yha.17 for ; Thu, 17 Apr 2014 05:45:04 -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 --089e0158c41cf16eca04f73c66c6 Content-Type: text/plain; charset=ISO-8859-1 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 >> > > --089e0158c41cf16eca04f73c66c6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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, Bas= tien <bzg@gnu.org> wrote:
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


--089e0158c41cf16eca04f73c66c6--