From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: BUG: named time references problem in formula Date: Mon, 27 Apr 2015 17:47:14 +0200 Message-ID: <86pp6pzzzzmv3x@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlGB-0000xa-JS for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 11:47:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmlG8-0006qv-EP for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 11:47:51 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:50263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlG8-0006qi-9L for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 11:47:48 -0400 Received: from mfilter31-d.gandi.net (mfilter31-d.gandi.net [217.70.178.162]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 068D7FB8C8 for ; Mon, 27 Apr 2015 17:47:47 +0200 (CEST) Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter31-d.gandi.net (mfilter31-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id NFP4MmBoAD4s for ; Mon, 27 Apr 2015 17:47:15 +0200 (CEST) Received: from localhost.invalid (unknown [193.206.22.97]) (Authenticated sender: me@toel.it) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 88065FB8CD for ; Mon, 27 Apr 2015 17:47:15 +0200 (CEST) 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 Hello, according to [[info:org#References]] (see Named references) is possible to use a property in formulas. This generally works, but not when the property is a time value as defined in [[info:org#Durations%20and%20time%20values]]. Please have a look at the following ECM: * test table with constant (working) :PROPERTIES: :constant: 3 :END: | month | days | results | |-------+-------+---------| | 01 | 1 | 3 | | 02 | 3 | 9 | #+TBLFM: $3=$2*$PROP_constant; * test table with time constant (not working) :PROPERTIES: :time_constant: 08:00:00 :END: | month | days | time | |-------+------+------| | 01 | 1 | | | 02 | 3 | | #+TBLFM: $3=$2*$PROP_time_constant;T Pressing C-u C-c C-c over the table shows in the message buffer: org-table-eval-formula: Wrong type argument: stringp, (13 "Bad format") Also is not possible to debug the code even with the formula debug enabled. Omitting the ";T" part will cause the debug to work and then the string #ERROR show up in the cell. My version is Org-mode version 8.3beta (release_8.3beta-1080-g367d48 @ /home/user/.emacs.d/el-get/org-mode/lisp/) Best, Daniele