]> code.delx.au - gnu-emacs/commit
Backport: Handle the `neg' operator in some calc-units functions.
authorWolfgang Jenkner <wjenkner@inode.at>
Thu, 22 Jan 2015 02:25:01 +0000 (03:25 +0100)
committerWolfgang Jenkner <wjenkner@inode.at>
Thu, 22 Jan 2015 02:29:23 +0000 (03:29 +0100)
commit3a345b50628cd700031121ad1b2ac1b7fae7f920
treee630dc512ef5e2ba01f4b2bce049660564aca67a
parent8ee825c35b62768e28fe825163dea90d3ab46022
Backport: Handle the `neg' operator in some calc-units functions.

* lisp/calc/calc-units.el (math-units-in-expr-p)
(math-single-units-in-expr-p, math-find-compatible-unit-rec)
(math-extract-units): Handle the `neg' operator.  (Bug#19582)
* test/automated/calc-tests.el (calc-tests-equal, calc-tests-simple):
New functions.
(test-calc-remove-units, test-calc-extract-units)
(test-calc-convert-units): New tests.
lisp/ChangeLog
lisp/calc/calc-units.el
test/ChangeLog
test/automated/calc-tests.el