From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: =?UTF-8?B?UmU6IEJ1ZzogTm8gcHJvcGVydHkgY2hhbmdlIGZyb20g4oCYb3Jn?= =?UTF-8?B?LWNsb2NrLXN1beKAmQ==?= Date: Fri, 06 May 2011 09:56:40 -0400 Message-ID: <87zkn0hqzr.fsf@norang.ca> References: <8739ltg26r.fsf@benfinney.id.au> <8762pofzx8.fsf@benfinney.id.au> <87liyk7gea.fsf@norang.ca> <87oc3gjq0x.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QILWT-0004Iy-BL for emacs-orgmode@gnu.org; Fri, 06 May 2011 09:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QILWO-0005In-Qi for emacs-orgmode@gnu.org; Fri, 06 May 2011 09:56:49 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:59530 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QILWO-0005IY-Ms for emacs-orgmode@gnu.org; Fri, 06 May 2011 09:56:44 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ben Finney Cc: emacs-orgmode@gnu.org Ben Finney writes: > Bernt Hansen 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