diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-10-14 18:03:52 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-10-14 18:03:52 -0400 |
commit | 0fac3f55325cf33e797b33be9935bf39f344c7c9 (patch) | |
tree | 4fd9dc7fdace60642f3f179d75f54ba15489d6a9 /lisp/calc/calc-nlfit.el | |
parent | 423439b38067c4a428310edab24fba7da082027c (diff) | |
download | emacs-0fac3f55325cf33e797b33be9935bf39f344c7c9.tar.gz emacs-0fac3f55325cf33e797b33be9935bf39f344c7c9.tar.bz2 emacs-0fac3f55325cf33e797b33be9935bf39f344c7c9.zip |
* lisp/calc: Fix a few issues introduced by lexical scoping
Fix a few places I missed, where we incorrectly used lexical scoping on a var
that needed dynamic scoping.
These were detected thanks to a bit of footwork by Mattias EngdegÄrd!
* lisp/calc/calc-ext.el (math-read-big-lines): Declare as dynbound.
(math-read-big-bigp): Bind it inside a `let`.
* lisp/calc/calc-graph.el (math-arglist): Declare as dynbound.
* lisp/calc/calc-map.el (math-arglist): Declare as dynbound.
* lisp/calc/calc-misc.el (math-trunc-prec): Declare as dynbound.
(math-trunc): Bind it inside a `let`.
(math-floor-prec): Declare as dynbound.
(math-floor): Bind it inside a `let`.
* lisp/calc/calc-nlfit.el (calc-curve-varnames, calc-curve-coefnames):
Declare as dynbound.
* lisp/calc/calc-sel.el (math-comp-sel-tag): Declare as dynbound.
* lisp/calc/calcsel2.el (calc-sel-reselect): Declare as dynbound.
Diffstat (limited to 'lisp/calc/calc-nlfit.el')
-rw-r--r-- | lisp/calc/calc-nlfit.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/calc/calc-nlfit.el b/lisp/calc/calc-nlfit.el index 6f2a601cd99..5ed85fe7cae 100644 --- a/lisp/calc/calc-nlfit.el +++ b/lisp/calc/calc-nlfit.el @@ -665,6 +665,8 @@ (calc-handle-whys)) (defvar calc-curve-nvars) +(defvar calc-curve-varnames) +(defvar calc-curve-coefnames) (defun math-nlfit-fit-curve (fn grad solnexpr initparms &optional sdv) (calc-slow-wrapper |