[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug: Formula `vcount' fails to count values in date format [8.2.6 (8
From: |
Gang Chen |
Subject: |
[O] 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 |
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(@address@hidden)
#+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!
- [O] Bug: Formula `vcount' fails to count values in date format [8.2.6 (8.2.6-dist @ d:/opt/emacs/site-lisp/org/)],
Gang Chen <=