]> git.eshelyaron.com Git - emacs.git/commit
Fix multiple Calc defmath errors (bug#46750)
authorMattias Engdegård <mattiase@acm.org>
Mon, 1 Mar 2021 19:52:39 +0000 (20:52 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 1 Mar 2021 19:59:52 +0000 (20:59 +0100)
commit08b11a02f49da5ca0e4e58a32fa853df0c5e0214
tree2fa214afcabb53abdcb6eee5c7221a45c0358370
parent5f319423c8fdd06b90b076ff6001705884c51f70
Fix multiple Calc defmath errors (bug#46750)

Fix incorrect variable scoping in `let*`, `for` and `foreach`.
Fix loop variable value in `foreach` (should be element, not tail).
Fix function quoting, as in ('cons x y) -- didn't work at all.

Reported by Stephan Neuhaus.

* lisp/calc/calc-prog.el (math-define-exp, math-handle-foreach):
* test/lisp/calc/calc-tests.el: (var-g, test1, test2, test3, test4)
(test5, test6, test7, calc-defmath): Test various defmath forms.
lisp/calc/calc-prog.el
test/lisp/calc/calc-tests.el