* 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
* Re: BUG: named time references problem in formula
2015-04-27 15:47 BUG: named time references problem in formula Daniele Pizzolli
@ 2015-05-10 23:22 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-05-10 23:22 UTC (permalink / raw)
To: Daniele Pizzolli; +Cc: emacs-orgmode
Hello,
Daniele Pizzolli <dan@toel.it> writes:
> Please have a look at the following ECM:
>
> * 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")
This should be fixed in c0dec9a8bcfd4bf3bceb330348a4d01e35c2ae25. Thank you.
Regards,
--
Nicolas Goaziou
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.