From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Michael Reilly Subject: Org spreadsheet formula range destination and per-cell placement for Lisp Date: Sun, 24 Mar 2013 16:26:37 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e0f835d427604d8b18168 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJrV3-0004Md-0M for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 16:26:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJrV1-0003mw-LA for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 16:26:40 -0400 Received: from mail-da0-x229.google.com ([2607:f8b0:400e:c00::229]:35445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJrV1-0003lf-CL for emacs-orgmode@gnu.org; Sun, 24 Mar 2013 16:26:39 -0400 Received: by mail-da0-f41.google.com with SMTP id w4so2938971dam.14 for ; Sun, 24 Mar 2013 13:26:38 -0700 (PDT) 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: emacs-orgmode@gnu.org --047d7b2e0f835d427604d8b18168 Content-Type: text/plain; charset=ISO-8859-1 I am in the throes of setting up an Org mode spreadsheet for an invoicing/status/planning tool and came across this fabulous thread: *[O] org table calc and lisp for hh:mm timetable *at http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg00972.htmlwhich provided me much of what I need. So thanks to all involved for that excellent piece of work. The one problem I am having trouble grasping is in how to use Emacs Lisp to generate a range of values automagically. I have no trouble with a single cell using Lisp and passing in a rectangular region to process or in setting up a region using the Org table/spreadsheet/calc support described in the various Google accessible documentation. What I am trying to do at a high level is setup a table with rows of actions spanning a start and stop time. Each action row has a bill-to category column. In the table, as part of a Lisp based formula, I want to process these action rows and build a list of "bill-to : total time" summary values and then place these summaries in a range in the table, so a fragment of the table might look like: ... | Client1 | Client2 | Commute | ... ... | 12.50 | 22.00 | 10.5 | ... where the numbers (hours) have been summed by filtering the task rows by clients. Hope that's clear. So there are essentially two issues for me: the first is understanding how to associate a range destination for a Lisp based formula result, which I think can be done, I just do not understand how to do it yet, and second, probably an enhancement request, is to figure out how to pass a list of cell addresses to a List form (along with other data) and have the form compute and store values to those cells. The latter would a sort of holy grail, at least for me. Thanks, -pmr --047d7b2e0f835d427604d8b18168 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am in the throes of setting up an Org mode sp= readsheet for an invoicing/status/planning tool and came across this fabulo= us thread:=A0[O] org table calc and lisp for hh:mm timetable=A0at http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/m= sg00972.html which provided me much of what I need. =A0So thanks to all= involved for that excellent piece of work.

The one problem I am having trouble graspin= g is in how to use Emacs Lisp to generate a range of values automagically. = =A0I have no trouble with a single cell using Lisp and passing in a rectang= ular region to process or in setting up a region using the Org table/spread= sheet/calc support described in the various Google accessible documentation= .

What I am trying to do at a high level is s= etup a table with rows of actions spanning a start and stop time. =A0Each a= ction row has a bill-to category column. =A0In the table, as part of a Lisp= based formula, I want to process these action rows and build a list of &qu= ot;bill-to : total time" summary values and then place these summaries= in a range in the table, so a fragment of the table might look like:

... | Client1 | Client2 | Commute | ...
... | =A012.50 =A0| =A022.00 =A0| =A010.5 =A0 =A0 =A0 =A0| ...=

where the numbers (hours) =A0have bee= n summed by filtering the task rows by clients. =A0Hope that's clear.

So there are essentially two issues for me:= =A0the first is understanding how to associate a range destination for a L= isp based formula result, which I think can be done, I just do not understa= nd how to do it yet, and second, probably an enhancement request, is to fig= ure out how to pass a list of cell addresses to a List form (along with oth= er data) and have the form compute and store values to those cells. =A0The = latter would a sort of holy grail, at least for me.

Thanks,

-pmr

--047d7b2e0f835d427604d8b18168--