org-plot: Handle explicit date/time index
commite2b6c506c28540943c9802a46500c940baa793be
authorYasushi SHOJI <yashi@atmark-techno.com>
Mon, 10 Mar 2014 17:26:47 +0000 (11 02:26 +0900)
committerBastien Guerry <bzg@altern.org>
Thu, 13 Mar 2014 11:56:54 +0000 (13 12:56 +0100)
treeb60d6cefe6ed764671feb5bf0eefc8a4e61974d0
parentbca8a49363ddfe93fafe9a2bd2849554f50ec6dc
org-plot: Handle explicit date/time index

* lisp/org-plot.el (org-plot-quote-tsv-field): Dump data as is when
  `timeind' is set.

* lisp/org-plot.el (org-plot/gnuplot): By-pass type checking when
  either `textind' or `timeind' is set.

The current org-plot relies on `org-table-number-regexp' and
`org-ts-regexp3' to check the index type.  However, we already have
`timeind' to indicate that the index is the datatype of date/time.

By-pass the type checking in `org-plot/gnuplot' when either `textind'
or `timeind' is set.  The whole point of the check is to determine the
type. We do not need that when we already know.

Also dump the date/time data with `org-plot-quote-tsv-field' as is,
without double quotes, when `timeind' is set.  So that we can use
`timefmt' to read what we have.  Currently we do not have a good way
to specify `timefmt' with the double quotes.

TINYCHANGE
lisp/org-plot.el