From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org table calc and lisp for hh:mm timetable Date: Tue, 15 Mar 2011 20:37:11 +0000 Message-ID: <878vwgqfwo.fsf@ucl.ac.uk> References: <9999237C-1FBD-481E-AF8D-D68DB85080CE@gmail.com> <87lj0gqjd3.fsf@ucl.ac.uk> <0DDD90AF-9B9A-4FE3-8080-74EF01E6E292@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=40565 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzazj-000796-P4 for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 16:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzazi-0005t3-9h for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 16:37:31 -0400 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:47361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pzazi-0005rZ-5M for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 16:37:30 -0400 In-Reply-To: <0DDD90AF-9B9A-4FE3-8080-74EF01E6E292@gmail.com> (Martin Halder's message of "Tue, 15 Mar 2011 20:49:01 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Halder Cc: emacs-orgmode@gnu.org Martin Halder writes: [...] > Hi Eric, > > yes and thanks for the previous help, too.. the good old printf.. I > would like to pass the result of time() directly to a lisp function, > like: > #+TBLFM: $6='(coolfunc (time(...$5)-time(...$4))) > > If I would know how to pass the result, eg as a string, to a lisp > function I could sort it out, I guess. Hopefully somebody else can jump in; I have no idea how and where the time functions are evaluated. Looking at the org-table.el code hasn't made me any wiser unfortunately and I don't quite understand the link between that code and the emacs calc package... -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.52.g0dc16.dirty)