emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: C-c C-y in currently clocked header
Date: Thu, 16 Oct 2014 08:58:18 +0200	[thread overview]
Message-ID: <87oatcijqt.fsf@wmi.amu.edu.pl> (raw)
In-Reply-To: <87d29sd63e.wl-n142857@gmail.com>


On 2014-10-16, at 05:52, Daniel Clemente wrote:

>> >
>> > **** currently clocking
>> > 	 :CLOCK:
>> > 	 CLOCK: [2014-10-15 Wed 16:06]
>> > 	 CLOCK: [2014-10-13 Mon 11:23]--[2014-10-13 Mon 11:54] =>  0:31
>> > 	 :END:
>> >
>> > Now it's 16:26. If I put the cursor in 16:06 and press C-c C-y (org-evaluate-time-range), it would be useful to see in the minibuffer that the difference until now is 20 minutes.
>> 
>> Saluton!
>> 
>> Are you aware that you can set org-clock-mode-line-total to 'current?
>> (Personally, I only discovered it before a few hours, and set it to
>> 'today.)
>
> Yes, but you may want to see the current clocking duration independently of the settings of the current header. E.g. even if org-clock-mode-line-total==all, I want to see that my unclosed clocking amounts for 20 minutes.

Fair enough, I just wanted to make sure you knew about that variable.
(As I told, I wasn't aware of it until recently.  And the only reason I
learned about it, btw, was the thought "something like this /should/ be
possible", and it's Org-mode, after all, so obviously it was.

Notice that your proposed solution (while reasonable from the point of
view of how C-c C-y works) might be cumbersome – you'd need to go to the
place where you have the :LOGBOOK: drawer, open it, move to the first
line and hit C-c C-y.  A faster way to get the same information might be

C-c C-x C-o
[the info you wanted gets displayed in the echo area]
C-u C-c C-x C-i
1

if you don't mind splitting the clocking line in :LOGBOOK: into two.
(AFAIU, you also run into the risk of dropping one minute of clocking
time if you happen to do this at hh:mm:59 or something.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

      reply	other threads:[~2014-10-16  6:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-15  9:29 C-c C-y in currently clocked header Daniel Clemente
2014-10-15 19:49 ` Marcin Borkowski
2014-10-16  3:52   ` Daniel Clemente
2014-10-16  6:58     ` Marcin Borkowski [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

  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=87oatcijqt.fsf@wmi.amu.edu.pl \
    --to=mbork@wmi.amu.edu.pl \
    --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).