From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Using org-mode for recipes (i.e. cooking) Date: Thu, 24 Mar 2011 22:56:12 +0100 Message-ID: <4D8BBDFC.30909@christianmoe.com> References: <4D8BAF12.3000904@christianmoe.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=35376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2sSW-0004cG-5w for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 17:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2sSV-00009W-55 for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 17:52:48 -0400 Received: from mars.hitrost.net ([91.185.211.18]:51504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2sSU-00009H-U5 for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 17:52:47 -0400 In-Reply-To: <4D8BAF12.3000904@christianmoe.com> 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: mail@christianmoe.com Cc: Orgmode Mailing List , Le Wang PS. Using Eric Schulte's new with-time macro (http://orgmode.org/worg/org-hacks.html#sec-1_2_6), part of the table formula in my above example can be written more compactly: $5 = '(if (string-match org-timer-re $3) (org-timer-secs-to-hms (- (org-timer-hms-to-secs $2) (org-timer-hms-to-secs $4))) "") becomes: $5='(if (string-match org-timer-re $3) (with-time t (- $2 $4)) "")