emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: named time references problem in formula
@ 2015-04-27 15:47 Daniele Pizzolli
  2015-05-10 23:22 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Daniele Pizzolli @ 2015-04-27 15:47 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-10 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 15:47 BUG: named time references problem in formula Daniele Pizzolli
2015-05-10 23:22 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).