forked from mirrors/org-mode
* doc/org.texi (Formula syntax for Calc): Add explanation and example for empty field. * lisp/org-table.el (org-table-eval-formula): Use `keep-empty' in more places. (org-table-make-reference): Use nan (not a number) for empty fields in Calc formulas. * testing/lisp/test-org-table.el: Adapt expected for several ert-deftest. (test-org-table/empty-field): New examples dealing with empty fields. (test-org-table/copy-field): New ert-deftest with examples dealing with empty fields. This makes it possible to write spreadsheet Calc formulas that check for empty fields: To sum the first two columns unless one or both empty: $3 = if("$1" = "nan" || "$2" = "nan", string(""), $1 + $2); E |
||
---|---|---|
.. | ||
test-ob-awk.el | ||
test-ob-C.el | ||
test-ob-emacs-lisp.el | ||
test-ob-exp.el | ||
test-ob-fortran.el | ||
test-ob-lilypond.el | ||
test-ob-lob.el | ||
test-ob-maxima.el | ||
test-ob-octave.el | ||
test-ob-python.el | ||
test-ob-R.el | ||
test-ob-sh.el | ||
test-ob-table.el | ||
test-ob-tangle.el | ||
test-ob.el | ||
test-org-clock.el | ||
test-org-element.el | ||
test-org-exp.el | ||
test-org-export.el | ||
test-org-footnote.el | ||
test-org-html.el | ||
test-org-list.el | ||
test-org-src.el | ||
test-org-table.el | ||
test-org.el | ||
test-property-inheritance.el |