emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gang Chen <goncha@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Formula `vcount' fails to count values in date format [8.2.6 (8.2.6-dist @ d:/opt/emacs/site-lisp/org/)]
Date: Mon, 19 May 2014 15:24:03 +0800	[thread overview]
Message-ID: <CAAW9E1FRpwH_yQpokVOXAzk97hO63syRfhgjUEnnM--hJwAccQ@mail.gmail.com> (raw)

Emacs  : GNU Emacs 24.3.1 (i386-mingw-nt5.1.2600)
 of 2013-03-18 on MARVIN
Package: Org-mode version 8.2.6 (8.2.6-dist @ d:/opt/emacs/site-lisp/org/)

Hello, I have a problem when using `vcount' in table.

As the following table:

#+BEGIN_SRC
|   |       date |
|---+------------|
| * | 2014-01-01 |
| * | 2014-01-03 |
|---+------------|
| _ |        Cnt |
| * |          1 |
#+TBLFM: $Cnt=vcount(@I..@II)
#+END_SRC

After evaluation of the formula of $Cnt, the value is 1, not 2.

I found line 2715 of file org-table.el:

#+BEGIN_SRC
(setq form (replace-regexp-in-string org-ts-regexp3 "<\\1>" form))
#+END_SRC

change the value of `form' from `vcount([2014-01-01,2014-01-03]' to
`vcount(<2014-01-01,>)'. Is this the expected behavior?

Thank you very much in advance!

             reply	other threads:[~2014-05-19  7:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19  7:24 Gang Chen [this message]
2014-05-20 20:03 ` Bug: Formula `vcount' fails to count values in date format [8.2.6 (8.2.6-dist @ d:/opt/emacs/site-lisp/org/)] Bastien

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=CAAW9E1FRpwH_yQpokVOXAzk97hO63syRfhgjUEnnM--hJwAccQ@mail.gmail.com \
    --to=goncha@gmail.com \
    --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).