org-table.el: Fix range len bugs for empty ranges
commit5625a6ed799147c02ce43c7481b794eab8cdfd32
authorMichael Brand <michael.ch.brand@gmail.com>
Tue, 9 Apr 2013 12:35:21 +0000 (9 14:35 +0200)
committerBastien Guerry <bzg@altern.org>
Tue, 9 Apr 2013 17:05:20 +0000 (9 19:05 +0200)
tree9b288619cb0b6b9a8c0b206454b7f2f800434ddb
parent01ce58b3d652c5a72a9c5f4f873bbfd5673a5b88
org-table.el: Fix range len bugs for empty ranges

(org-table-make-reference): A range with only empty fields should lead
to length 0.
* testing/lisp/test-org-table.el: Adapt expected for several
ert-deftest.

The range len bugs may lead to wrong calculations for range references
with empty fields when the range len is relevant.  Affects typically
Calc vmean on simple range and without format specifier EN.  Also
Lisp with e. g. `length' on simple range or with L.

It is worth a small compatibility change: For a range with only empty
fields it is now possible and necessary to choose different behaviors
of vmean by adding the format specifiers E and/or N.

This is a follow-up of commit
764315b3fce26de59189b957a8049e299209043a.
lisp/org-table.el
testing/lisp/test-org-table.el