From: Eli Zaretskii <eliz@gnu.org>
To: Rares Vernica <rvernica@gmail.com>
Cc: 23890@debbugs.gnu.org
Subject: bug#23890: 25.0.94; Org-mode Table does not copy time interval correctly
Date: Mon, 04 Jul 2016 17:49:20 +0300 [thread overview]
Message-ID: <83inwlpifj.fsf@gnu.org> (raw)
In-Reply-To: <CALQ9KxAX7+2+mBuF_v+iyutmOLsCzEGBVhM+Z=zJVqB9UVJMxw@mail.gmail.com> (message from Rares Vernica on Sun, 3 Jul 2016 22:30:08 -0700)
> From: Rares Vernica <rvernica@gmail.com>
> Date: Sun, 3 Jul 2016 22:30:08 -0700
>
> In the following table:
>
> | [2016-07-03 Sun]--[2016-07-04 Mon] | 1d | d |
> | [2016-07-03 Sun]--[2016-07-05 Tue] | 2d | 2 d |
> #+TBLFM: $3=$2
>
> The second column is computed by pressing C-u C-c C-y. This sequence
> calculates the time difference between the time-stamps in the previous
> column and inserts the difference in the current column. This is fine.
>
> Now, for the third column, I insert the formula listed at the bottom of
> the table. Once applied, the result of the formula for the fist row is
> just "d" instead of "1d". So, it seems that the value is not copied
> correctly.
>
> This seems to work fine if the time-stamp range is greater than one
> day. Also, for the second row, the value is copied correctly but there
> is an extra " " inserted between the number and the "d" letter. This
> might not be desirable.
>
> Appending "D" at the end of the formula, yields the same result:
>
> | [2016-07-03 Sun]--[2016-07-04 Mon] | 1d | d |
> | [2016-07-03 Sun]--[2016-07-05 Tue] | 2d | 2 d |
> #+TBLFM: $3=$2;D
>
> I also tried appending "T" at the end of the formula:
>
> | [2016-07-03 Sun]--[2016-07-04 Mon] | 1d | 00:00:01 |
> | [2016-07-03 Sun]--[2016-07-05 Tue] | 2d | 00:00:02 |
> #+TBLFM: $3=$2;T
>
> The numeric value is copied correctly but the days are now changed to seconds.
Thanks, but I think you should first report this to the Org
developers. Come back here if they say this is a problem in core
Emacs, not in Org code.
next prev parent reply other threads:[~2016-07-04 14:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 5:30 bug#23890: 25.0.94; Org-mode Table does not copy time interval correctly Rares Vernica
2016-07-04 14:49 ` Eli Zaretskii [this message]
2016-07-04 16:30 ` Glenn Morris
2016-07-04 16:32 ` Eli Zaretskii
2016-07-05 21:58 ` Nicolas Goaziou
2016-07-06 4:44 ` Rares Vernica
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83inwlpifj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=23890@debbugs.gnu.org \
--cc=rvernica@gmail.com \
/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 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.