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 13:33:45 +0200 Message-ID: References: <87zjjk5p9q.fsf@bzg.ath.cx> <87ioq82pk9.fsf@bzg.ath.cx> <87a9bk2pbc.fsf@bzg.ath.cx> <87lhv442xy.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158c41ceedbdf04f73b6782 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WakZj-0006Ch-9i for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 07:33:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WakZe-0006nS-C5 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 07:33:51 -0400 Received: from mail-yh0-x229.google.com ([2607:f8b0:4002:c01::229]:46904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WakZe-0006nM-60 for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 07:33:46 -0400 Received: by mail-yh0-f41.google.com with SMTP id i57so220545yha.0 for ; Thu, 17 Apr 2014 04:33:45 -0700 (PDT) In-Reply-To: <87lhv442xy.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 --089e0158c41ceedbdf04f73b6782 Content-Type: text/plain; charset=ISO-8859-1 Okay, that seem to work. But I'm not able to get this work: (add-hook 'org-after-sorting-entries-or-items-hook (lambda() (org-cycle-hide-drawers 'children))) After running the sort, all the LOGBOOK draws are still open. I'm also thinking: even if this closes the logbook draws, all the nodes will be unfolded. But my node tree is quite large. Is it be possible to refold all the nodes after n-levels? So let's say I have: * Level 1 ** Level 2 *** Level 3 If I move the point to Level 1 and sort, I'd like it fold all Level 2 items, but leave Level 1 unfolded. On 17 April 2014 13:20, Bastien wrote: > Noah Slater writes: > > > I'm still getting this error! :/ > > Should be fixed in master. > > Otherwise use (setq debug-on-error t) and send the backtrace. > Better to debug from an uncompiled version if that's possible. > > > Happy to provide any sort of debug/version/setup info you need. > > > > I'm on IRC as nslater in #org-mode, if that is more convenient for > > you. > > I'm never on IRC :) > > > Thank you so much for the help! > > You're welcome, > > -- > Bastien > --089e0158c41ceedbdf04f73b6782 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Okay, that seem to work.

But I'm no= t able to get this work:

(add-hook 'org-a= fter-sorting-entries-or-items-hook
=A0 =A0 =A0 =A0 =A0 (lambda() = (org-cycle-hide-drawers 'children)))

After running the sort, all the LOGBOOK draws are= still open.

I'm also thinking: even if this c= loses the logbook draws, all the nodes will be unfolded. But my node tree i= s quite large. Is it be possible to refold all the nodes after n-levels?

So let's say I have:

* Lev= el 1
** Level 2
*** Level 3

If= I move the point to Level 1 and sort, I'd like it fold all Level 2 ite= ms, but leave Level 1 unfolded.


On 17 A= pril 2014 13:20, Bastien <bzg@altern.org> wrote:
Noah Slater <nsl= ater@tumbolia.org> writes:

> I'm still getting this error! :/

Should be fixed in master.

Otherwise use (setq debug-on-error t) and send the backtrace.
Better to debug from an uncompiled version if that's possible.

> Happy to provide any sort of debug/version/setup info you need.
>
> I'm on IRC as nslater in #org-mode, if that is more convenient for=
> you.

I'm never on IRC :)

> Thank you so much for the help!

You're welcome,

--
=A0Bastien

--089e0158c41ceedbdf04f73b6782--