changeset 58143:ad1cd229b771

(math-defcache): Use defvar for the new variables it creates.
author Jay Belanger <jay.p.belanger@gmail.com>
date Thu, 11 Nov 2004 20:13:21 +0000
parents 02ce2ff38c5b
children 33e4dc448551
files lisp/calc/calc-ext.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-ext.el	Thu Nov 11 19:04:18 2004 +0000
+++ b/lisp/calc/calc-ext.el	Thu Nov 11 20:13:21 2004 +0000
@@ -1849,10 +1849,10 @@
 	(last-prec (intern (concat (symbol-name name) "-last-prec")))
 	(last-val (intern (concat (symbol-name name) "-last"))))
     (list 'progn
-	  (list 'setq cache-prec (if init (math-numdigs (nth 1 init)) -100))
-	  (list 'setq cache-val (list 'quote init))
-	  (list 'setq last-prec -100)
-	  (list 'setq last-val nil)
+	  (list 'defvar cache-prec (if init (math-numdigs (nth 1 init)) -100))
+	  (list 'defvar cache-val (list 'quote init))
+	  (list 'defvar last-prec -100)
+	  (list 'defvar last-val nil)
 	  (list 'setq 'math-cache-list
 		(list 'cons
 		      (list 'quote cache-prec)