emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniele Pizzolli <dan@toel.it>
To: emacs-orgmode@gnu.org
Subject: BUG: named time references problem in formula
Date: Mon, 27 Apr 2015 17:47:14 +0200	[thread overview]
Message-ID: <86pp6pzzzzmv3x@me.localhost.invalid> (raw)

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

             reply	other threads:[~2015-04-27 15:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27 15:47 Daniele Pizzolli [this message]
2015-05-10 23:22 ` BUG: named time references problem in formula Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86pp6pzzzzmv3x@me.localhost.invalid \
    --to=dan@toel.it \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).