summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-01-19 11:43:25 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2021-01-19 16:11:51 +0100
commit297edbebec5eaf2924f65bd2015b65d16cbf9254 (patch)
treef109491e59b806b3e4c08a92e5326c0c4a961504
parent3b731b123d11e4c13e2dd16b336b146081f94a30 (diff)
downloademacs-297edbebec5eaf2924f65bd2015b65d16cbf9254.tar.gz
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'.
-rw-r--r--lisp/calc/calc-embed.el2
1 files changed, 2 insertions, 0 deletions
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)