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 12:41:40 +0200 Message-ID: References: <87zjjk5p9q.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303a2d61a8e4b404f73aad56 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WajlJ-0006cC-Vn for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 06:41:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WajlF-0005Zo-5A for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 06:41:45 -0400 Received: from mail-yh0-x22e.google.com ([2607:f8b0:4002:c01::22e]:39240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WajlF-0005Z7-0u for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 06:41:41 -0400 Received: by mail-yh0-f46.google.com with SMTP id b6so176409yha.5 for ; Thu, 17 Apr 2014 03:41:40 -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 --20cf303a2d61a8e4b404f73aad56 Content-Type: text/plain; charset=ISO-8859-1 Also, something I was hoping to look at was that when I sort, it expand all the nodes, including all of the :LOGBOOK: draws. I find this very inconvenient, and probably will not use this feature unless I can get it sorted. It appears that the code is expanding the nodes and the draws to read the clock times. But I'm wondering if this is possible without expanding everything, or if it is possible to restore the state after the calculations are done. Is this an easy change? Would you be interested in a patch? On 17 April 2014 12:39, Noah Slater wrote: > Oh, funny. I had already patched this locally. I picked "e" for "tim[e]". > > Using your version, I get an error: > > "sort: Wrong type argument: number-or-marker-p, (10426 . 10437)" > > Any clue? > > I tried to recompile everything under my .emacs.d (including org-mode), > but I still get the error. > > > On 17 April 2014 10:33, Bastien wrote: > >> Hi Noah, >> >> Noah Slater writes: >> >> > Is there any way to sort a collection of siblings by the total >> > clocked time? >> >> Now there is in master: C-c ^ k on a headline. >> >> Thanks for this idea, >> >> -- >> Bastien >> > > --20cf303a2d61a8e4b404f73aad56 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Also, something I was hoping to look at was that when I so= rt, it expand all the nodes, including all of the :LOGBOOK: draws.

=
I find this very inconvenient, and probably will not use this fe= ature unless I can get it sorted.

It appears that the code is expanding the nodes and the= draws to read the clock times. But I'm wondering if this is possible w= ithout expanding everything, or if it is possible to restore the state afte= r the calculations are done.

Is this an easy change? Would you be interested in a pa= tch?


On 17 April 2014 12:39, Noah Slater <nslater@tumbolia.org> wrote:
Oh, funny. I had already pa= tched this locally. I picked "e" for "tim[e]".

=
Using your version, I get an error:

"sor= t: Wrong type argument: number-or-marker-p, (10426 . 10437)"

Any clue?

I tried to recompile= everything under my .emacs.d (including org-mode), but I still get the err= or.


On 17 April 2014 10:33, Bastien <bzg@gnu.org> wrote:
Hi Noah,

Noah Slater <n= slater@tumbolia.org> writes:

> Is there any way to sort a collection of siblings by the total
> clocked time?

Now there is in master: C-c ^ k on a headline.

Thanks for this idea,

--
=A0Bastien


--20cf303a2d61a8e4b404f73aad56--