From: Martin Schroeder <mkschreder.uk@googlemail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to calculate all time durations in a file automatically?
Date: Tue, 7 May 2019 20:08:37 +0200 [thread overview]
Message-ID: <CAGmj6qurvPMh9tnYEvZOwNk1HVtYXdu6wOAUxo5M5N0BDsbkdw@mail.gmail.com> (raw)
In-Reply-To: <87y33i8d6o.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me>
Yeah I ended up using a macro and search for CLOCK text but this
solution is much cleaner
On Tue, May 7, 2019 at 6:04 PM Ihor Radchenko <yantar92@gmail.com> wrote:
>
> Dear Martin,
>
> Just go to the beginning of buffer and <M-:> (while (re-search-forward
> org-clock-line-re) (org-ctrl-c-ctrl-c)) <RET>. Or you can use keyboard
> macros ;)
>
> Best,
> Ihor
>
> Martin Schroeder <mkschreder.uk@googlemail.com> writes:
>
> > I have imported a bunch of log lines with CLOCK periods from another
> > program into an org file but I have forgotten to calculate periods. So
> > my time lines look like this:
> >
> > CLOCK: [2019-03-27 Wed 19:30]--[2019-03-27 Wed 21:30]
> >
> > Instead of this:
> >
> > CLOCK: [2019-03-27 Wed 19:30]--[2019-03-27 Wed 21:30] => 2:00
> >
> > I can now no longer check in on any task until I fix all these ranges
> > in all of my agenda files. So I have to go to each one and do C-c C-c.
> >
> > Surely there has to be a better way but in my searching with a giant
> > flashlight I was not able to find it yet. Can anybody point me in the
> > right direction?
> >
prev parent reply other threads:[~2019-05-07 18:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-07 9:12 How to calculate all time durations in a file automatically? Martin Schroeder
2019-05-07 16:03 ` Ihor Radchenko
2019-05-07 18:08 ` Martin Schroeder [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGmj6qurvPMh9tnYEvZOwNk1HVtYXdu6wOAUxo5M5N0BDsbkdw@mail.gmail.com \
--to=mkschreder.uk@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.