emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
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, 06 May 2011 09:56:40 -0400	[thread overview]
Message-ID: <87zkn0hqzr.fsf@norang.ca> (raw)
In-Reply-To: 87oc3gjq0x.fsf@benfinney.id.au

Ben Finney <ben+emacs@benfinney.id.au> writes:

> Bernt Hansen <bernt@norang.ca> writes:
>
>> I don't think the org-clock-sum function does what you think/want it
>> to do. The docstring says it sets text properties on the headline - so
>> I don't think it is intended to update a CLOCKSUM property in the
>> headings.
>
> I don't underastand the distinction. Isn't the CLOCKSUM property a text
> property? What do I need to know here?

Sorry I didn't explain that very well.  Hopefully this will shed a
little more light on this.

Text properties is an emacs feature where you can add extra (invisible,
and temporary) data to text in an emacs buffer.

An Org-mode properties are part of the org file and normally lives in
the :PROPERTY: drawer.

The column view overlay is displayed using emacs text properties - and
this doesn't alter the data in the org file.  Thus the org-invoice.el
code that queries the _org_ property CLOCKSUM never gets a value.

>
>> These text properties are temporary (ie. not saved in the org file) and
>> I think these are used by the column view overlays for display-only.
>>
>> The org-invoice.el contributed file created by Peter Jones uses a
>> CLOCKSUM property but I'm not sure if this is intended to be updated
>> manually or automatically from the clocking lines in org.  I've CC-ed
>> Peter in case he can shed any light on this.
>
> Thanks. It does seem that they're much the same purpose, so I hope they
> can be unified.

I think the fix is probably to make org-invoice.el look for the CLOCKSUM
text property instead of a CLOCKSUM org-mode property value.
org-invoice.el should probably also automatically call org-clock-sum so
this doesn't need to be a manual step.

Regards,
Bernt

  reply	other threads:[~2011-05-06 13:56 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 [this message]
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

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=87zkn0hqzr.fsf@norang.ca \
    --to=bernt@norang.ca \
    --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).