From: Mattias EngdegÄrd Date: Tue, 19 Jan 2021 10:43:25 +0000 (+0100) Subject: Missing dynamic variable declarations in Calc X-Git-Tag: emacs-28.0.90~4215 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=297edbebec5eaf2924f65bd2015b65d16cbf9254;p=emacs.git Missing dynamic variable declarations in Calc * lisp/calc/calc-embed.el (calc-embedded-set-modes): Prevent the-language and the-display-just from being lexically bound here, because they may be assigned using 'set'. --- diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el index ea79bfa69a0..fda0b4bbedb 100644 --- a/lisp/calc/calc-embed.el +++ b/lisp/calc/calc-embed.el @@ -651,6 +651,8 @@ The command \\[yank] can retrieve it from there." (defvar calc-embed-prev-modes) (defun calc-embedded-set-modes (gmodes modes local-modes &optional temp) + (defvar the-language) + (defvar the-display-just) (let ((the-language (calc-embedded-language)) (the-display-just (calc-embedded-justify)) (v gmodes)