emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* total time spent on a task
@ 2014-04-14 13:50 Christoph Groth
  2014-04-14 15:29 ` Sacha Chua
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Groth @ 2014-04-14 13:50 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I’m looking for a quick way to check the total time spent on a task.  I
bet I’m missing something obvious.  (I have set
org-clock-mode-line-total to today, so I do not see the total time of a
clocked-in task in the mode line.)

Many thanks,
Christoph

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-14 13:50 total time spent on a task Christoph Groth
@ 2014-04-14 15:29 ` Sacha Chua
  2014-04-14 16:47   ` Christoph Groth
  0 siblings, 1 reply; 8+ messages in thread
From: Sacha Chua @ 2014-04-14 15:29 UTC (permalink / raw)
  To: emacs-orgmode

Christoph Groth <christoph@grothesque.org> writes:

Hello, Christoph!

> I’m looking for a quick way to check the total time spent on a task.  I
> bet I’m missing something obvious.  (I have set
> org-clock-mode-line-total to today, so I do not see the total time of a
> clocked-in task in the mode line.)

C-c C-x C-d (org-clock-display) will show the task times as overlays on
the headings. If you want something exportable, you can use C-c C-x C-r
(org-clock-report) - see the info page for "The clock table" for lots of
options. If you want the number of minutes in Emacs Lisp, use
(org-clock-sum-current-item) for the current item or (org-clock-sum) to
add totals to all, then go to the heading and get the :org-clock-minutes
property.

Hope that helps!

Sacha

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-14 15:29 ` Sacha Chua
@ 2014-04-14 16:47   ` Christoph Groth
  2014-04-14 17:46     ` Sacha Chua
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Groth @ 2014-04-14 16:47 UTC (permalink / raw)
  To: emacs-orgmode

Hello Sacha,

Thanks for your quick reply.

Sacha Chua <sacha@sachachua.com> writes:

> C-c C-x C-d (org-clock-display) will show the task times as overlays
> on the headings.

That seems to be exactly what I need.  It works, but only shows times
for top-level headings (i.e. for example "miscellaneous" but not the
TODO items underneath).  Is this the way this is supposed to work?

I can see that overlays are added for all the headings that were clocked
on lower levels as well, but that overlays contain only spaces.

Best,
Christoph

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-14 16:47   ` Christoph Groth
@ 2014-04-14 17:46     ` Sacha Chua
  2014-04-15  9:29       ` Christoph Groth
  0 siblings, 1 reply; 8+ messages in thread
From: Sacha Chua @ 2014-04-14 17:46 UTC (permalink / raw)
  To: emacs-orgmode

Christoph Groth <christoph@grothesque.org> writes:

Hello, Christoph!

>> C-c C-x C-d (org-clock-display) will show the task times as overlays
>> on the headings.
> That seems to be exactly what I need.  It works, but only shows times
> for top-level headings (i.e. for example "miscellaneous" but not the
> TODO items underneath).  Is this the way this is supposed to work?
> I can see that overlays are added for all the headings that were clocked
> on lower levels as well, but that overlays contain only spaces.

Hmm, mine shows clock overlays for all headings with clock entries,
including TODO headings. I'm on Org 8.2.5h. By any chance, could those
overlays have invisible text? You can customize-face org-clock-overlay.
I remember that had been a problem for some people before.

Sacha

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-14 17:46     ` Sacha Chua
@ 2014-04-15  9:29       ` Christoph Groth
  2014-04-17  8:03         ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Groth @ 2014-04-15  9:29 UTC (permalink / raw)
  To: emacs-orgmode

Sacha Chua <sacha@sachachua.com> writes:

> Hmm, mine shows clock overlays for all headings with clock entries,
> including TODO headings. I'm on Org 8.2.5h. By any chance, could those
> overlays have invisible text? You can customize-face
> org-clock-overlay.  I remember that had been a problem for some people
> before.

In fact, times were shown for the other headlines as well, but
white-on-yellow!  I've modified the org-clock-overlay so the problem is
now fixed for me.

Is this a bug?  (It appears for me in bleeding edge orgmode.)  The
original org-clock-overlay only specifies the background color as yellow.
How to find out from which face the white foreground was inherited?  The
command describe-face does not seem to help for this.

Christoph

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-15  9:29       ` Christoph Groth
@ 2014-04-17  8:03         ` Bastien
  2014-04-17  9:02           ` Christoph Groth
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-04-17  8:03 UTC (permalink / raw)
  To: Christoph Groth; +Cc: emacs-orgmode

Hi Christoph,

Christoph Groth <christoph@grothesque.org> writes:

> In fact, times were shown for the other headlines as well, but
> white-on-yellow!  I've modified the org-clock-overlay so the problem is
> now fixed for me.
>
> Is this a bug?  (It appears for me in bleeding edge orgmode.)  The
> original org-clock-overlay only specifies the background color as yellow.
> How to find out from which face the white foreground was inherited?  The
> command describe-face does not seem to help for this.

I can't reproduce the problem here, it probably depends on the Emacs
version you use.  Can you tell more about your setup?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-17  8:03         ` Bastien
@ 2014-04-17  9:02           ` Christoph Groth
  2014-04-17  9:39             ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Groth @ 2014-04-17  9:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi Bastien,

Thank you for looking into this.

Bastien <bzg@gnu.org> writes:

>> In fact, times were shown for the other headlines as well, but
>> white-on-yellow!  I've modified the org-clock-overlay so the 
>> problem
>> is now fixed for me.
>>
>> Is this a bug?  (It appears for me in bleeding edge orgmode.) 
>> The
>> original org-clock-overlay only specifies the background color 
>> as
>> yellow.  How to find out from which face the white foreground 
>> was
>> inherited?  The command describe-face does not seem to help for 
>> this.
>
> I can't reproduce the problem here, it probably depends on the 
> Emacs
> version you use.  Can you tell more about your setup?

I'm running Emacs 24.3.1 and org-mode 8.2.4, both from Debian 
testing.
By bisecting my Emacs configuration I've found out that the 
culprit is

(setq org-startup-indented t)

When indented mode is disabled, the overlays appear with brown 
text on
yellow background.  Can you reproduce this?

Christoph

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: total time spent on a task
  2014-04-17  9:02           ` Christoph Groth
@ 2014-04-17  9:39             ` Bastien
  0 siblings, 0 replies; 8+ messages in thread
From: Bastien @ 2014-04-17  9:39 UTC (permalink / raw)
  To: Christoph Groth; +Cc: emacs-orgmode

Hi Christoph,

Christoph Groth <christoph@grothesque.org> writes:

> (setq org-startup-indented t)

Good hint, this is now fixed, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-04-17  9:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-14 13:50 total time spent on a task Christoph Groth
2014-04-14 15:29 ` Sacha Chua
2014-04-14 16:47   ` Christoph Groth
2014-04-14 17:46     ` Sacha Chua
2014-04-15  9:29       ` Christoph Groth
2014-04-17  8:03         ` Bastien
2014-04-17  9:02           ` Christoph Groth
2014-04-17  9:39             ` Bastien

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).