emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Noah Slater <nslater@tumbolia.org>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Sorting nodes by clocked time
Date: Thu, 17 Apr 2014 16:42:34 +0200	[thread overview]
Message-ID: <CA+Y+446tJ4Bk1tTSjmWXPwyjKdYULziGpgTQABn=H_2497KwFg@mail.gmail.com> (raw)
In-Reply-To: <CA+Y+4465eFNVBNN6s6iV6xV6Ctd-n=OkE2sqbNEG-P3kj6kZAA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

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 <nslater@tumbolia.org> 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 <nslater@tumbolia.org> 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 <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 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
>>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 2982 bytes --]

  reply	other threads:[~2014-04-17 14:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07 16:44 Sorting nodes by clocked time Noah Slater
2014-04-17  8:33 ` Bastien
2014-04-17 10:39   ` Noah Slater
2014-04-17 10:41     ` Noah Slater
2014-04-17 11:00       ` Bastien
2014-04-17 10:55     ` Bastien
2014-04-17 10:57       ` Noah Slater
2014-04-17 11:00         ` Bastien
2014-04-17 11:02           ` Noah Slater
2014-04-17 11:20             ` Bastien
2014-04-17 11:33               ` Noah Slater
2014-04-17 11:55                 ` Bastien
2014-04-17 12:02                   ` Noah Slater
2014-04-17 12:20                     ` Noah Slater
2014-04-17 12:25                       ` Bastien
2014-04-17 12:26                     ` Bastien
2014-04-17 12:34                       ` Noah Slater
2014-04-17 12:45                         ` Noah Slater
2014-04-17 14:42                           ` Noah Slater [this message]
2014-04-17 15:05                             ` Bastien
2014-04-18  0:09                             ` Sacha Chua
2014-04-20  9:48                               ` Noah Slater
2014-04-17 14:45                         ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+Y+446tJ4Bk1tTSjmWXPwyjKdYULziGpgTQABn=H_2497KwFg@mail.gmail.com' \
    --to=nslater@tumbolia.org \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).