emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Ben Finney <ben+emacs@benfinney.id.au>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: No property change from ‘org-clock-sum’
Date: Fri, 6 May 2011 17:31:47 +0200	[thread overview]
Message-ID: <0FD50E86-C9AE-4E8C-A59B-7E19548895EF@gmail.com> (raw)
In-Reply-To: <8739ltg26r.fsf@benfinney.id.au>


On 7.4.2011, at 23:51, Ben Finney wrote:

> Howdy all,
> 
> When I use ‘org-clock-sum’ in Org-mode version 7.4, nothing appears to
> happen: the items in the subtree are not updated and no ‘CLOCKSUM’
> property appears.

CLOCKSUM is a special property which is only a way to access clocking
information, but the property is never set literally.
org-invoice was broken due to changes in the property code in org.el,
fixed now.

HTH

- Carsten

> 
> Org-mode version 7.4
> GNU Emacs 23.2.1 (powerpc-unknown-linux-gnu, GTK+ Version 2.20.1) of
> 2010-12-12 on porpora, modified by Debian
> 
> 
> I'm trying to generate an invoice report using ‘org-invoice.el’.
> 
> The items on which I want to report have clock entries, generated
> correctly with ‘org-clock-in’ and ‘org-clock-out’. An example:
> 
> =====
> * foo
> ** bar
> *** [2011-03-24 Thu]
>    CLOCK: [2011-03-24 Thu 14:15]--[2011-03-24 Thu 18:03] =>  3:48
>    CLOCK: [2011-03-24 Thu 09:10]--[2011-03-24 Thu 12:27] =>  3:17
> *** [2011-03-23 Wed]
>    CLOCK: [2011-03-23 Wed 14:10]--[2011-03-23 Wed 18:16] =>  4:06
>    CLOCK: [2011-03-23 Wed 09:30]--[2011-03-23 Wed 13:10] =>  3:40
> *** [2011-03-22 Tue]
>    CLOCK: [2011-03-22 Tue 14:00]--[2011-03-22 Tue 17:30] =>  3:30
>    CLOCK: [2011-03-22 Tue 08:58]--[2011-03-22 Tue 13:31] =>  4:33
> =====
> 
> According to the doc string for ‘org-invoice-report’, the ‘CLOCKSUM’
> property on each item in the subtree will be used for the report.
> 
> So apparently I need to ‘org-clock-sum’ on the tree before updating the
> report, in order to automatically generate the ‘CLOCKSUM’ property. But
> that function doesn't change anything.
> 
> Why wouldn't the ‘org-clock-sum’ function do what its doc string says?
> How should I be updating the ‘CLOCKSUM’ property?
> 
> -- 
> \        “The industrial system is profoundly dependent on commercial |
>  `\   television and could not exist in its present form without it.” |
> _o__)        —John Kenneth Galbraith, _The New Industrial State_, 1967 |
> Ben Finney
> 
> 

      parent reply	other threads:[~2011-05-06 15:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07 21:51 Bug: No property change from ‘org-clock-sum’ Ben Finney
2011-05-06  0:14 ` Ben Finney
2011-05-06  1:43   ` Bernt Hansen
2011-05-06  6:34     ` Ben Finney
2011-05-06 13:56       ` Bernt Hansen
2011-05-06 15:30         ` Carsten Dominik
2011-05-06 15:55           ` Bernt Hansen
2011-05-07  0:48           ` Ben Finney
2011-05-06 14:43     ` Peter Jones
2011-05-06 16:32       ` Bernt Hansen
2011-05-06 15:31 ` Carsten Dominik [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=0FD50E86-C9AE-4E8C-A59B-7E19548895EF@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=ben+emacs@benfinney.id.au \
    --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).