]> git.eshelyaron.com Git - emacs.git/commitdiff
Missing dynamic variable declarations in Calc
authorMattias Engdegård <mattiase@acm.org>
Tue, 19 Jan 2021 10:43:25 +0000 (11:43 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 19 Jan 2021 15:11:51 +0000 (16:11 +0100)
* 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

index ea79bfa69a0a4243f55842c938a43715ce535a4e..fda0b4bbedb47c177799b24ac991984d02348fb8 100644 (file)
@@ -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)