emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rares Vernica <rvernica@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: 23890@debbugs.gnu.org
Subject: bug#23890: 25.0.94; Org-mode Table does not copy time interval correctly
Date: Tue, 05 Jul 2016 21:44:56 -0700	[thread overview]
Message-ID: <87zipvbcjb.fsf@gmail.com> (raw)
In-Reply-To: <87shvnhhmg.fsf@saiph.selenimh> (Nicolas Goaziou's message of "Tue, 05 Jul 2016 23:58:31 +0200")

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> It isn't a bug actually.
>
> Spreadsheet formulas are sent to Calc (unless it starts with "'(" in
> which case it is treated as Elisp). Doing symbolic computations, Calc
> parses "1d" as one time the symbolic variable "d". So "1d" is the same
> as "d".
>
> Basically, the OP could use instead:
>
> #+TBLFM: $3='(identity $2)

That did the trick, thanks!

Just to clarify, how would you fix this:

| [2016-07-05 Tue]--[2016-07-06 Wed] | 1d | vsum(d) |
| [2016-07-06 Wed]--[2016-07-07 Thu] | 1d | 2 d     |
#+TBLFM: $3=vsum(@1$-1..@0$-1)

Notice the "vsum(d)" instead of the expected "1 d". How would you add
"identity" here?

Thanks!
Rares

  reply	other threads:[~2016-07-06  4:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALQ9KxAX7+2+mBuF_v+iyutmOLsCzEGBVhM+Z=zJVqB9UVJMxw@mail.gmail.com>
     [not found] ` <83inwlpifj.fsf@gnu.org>
2016-07-04 16:30   ` bug#23890: 25.0.94; Org-mode Table does not copy time interval correctly Glenn Morris
2016-07-04 16:32     ` Eli Zaretskii
2016-07-05 21:58       ` Nicolas Goaziou
2016-07-06  4:44         ` Rares Vernica [this message]
2016-07-06 20:34           ` Nicolas Goaziou
2017-12-01 18:57             ` Nicolas Goaziou
2017-12-01 20:59               ` 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=87zipvbcjb.fsf@gmail.com \
    --to=rvernica@gmail.com \
    --cc=23890@debbugs.gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).