[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 297edbe 1/2: Missing dynamic variable declarations in Calc
From: |
Mattias Engdegård |
Subject: |
master 297edbe 1/2: Missing dynamic variable declarations in Calc |
Date: |
Tue, 19 Jan 2021 10:12:08 -0500 (EST) |
branch: master
commit 297edbebec5eaf2924f65bd2015b65d16cbf9254
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
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'.
---
lisp/calc/calc-embed.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el
index ea79bfa..fda0b4b 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)