From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gang Chen 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 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmHvb-0003B2-1m for emacs-orgmode@gnu.org; Mon, 19 May 2014 03:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmHvZ-0004lP-9o for emacs-orgmode@gnu.org; Mon, 19 May 2014 03:24:06 -0400 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:50402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmHvZ-0004Zo-1z for emacs-orgmode@gnu.org; Mon, 19 May 2014 03:24:05 -0400 Received: by mail-la0-f48.google.com with SMTP id mc6so3693777lab.21 for ; Mon, 19 May 2014 00:24:03 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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!