changeset 59211:999144478c9a

(calc-copy-variable): Fix mistyped variable name. Display variable name differently in message.
author Jay Belanger <jay.p.belanger@gmail.com>
date Thu, 30 Dec 2004 17:43:09 +0000
parents 6e385b257cef
children d928e34db52a
files lisp/calc/calc-store.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-store.el	Thu Dec 30 12:45:22 2004 +0000
+++ b/lisp/calc/calc-store.el	Thu Dec 30 17:43:09 2004 +0000
@@ -373,9 +373,10 @@
    (if var1
        (let ((value (calc-var-value var1)))
 	 (or value
-	     (error "No such variable: \"%s\"" (calc-var-name var)))
+	     (error "No such variable: \"%s\"" (calc-var-name var1)))
 	 (or var2 (setq var2 (calc-read-var-name
-			      (format "Copy variable: %s, to: " var1))))
+			      (format "Copy variable: %s, to: " 
+                                      (calc-var-name var1)))))
 	 (if var2
 	     (calc-store-value var2 value ""))))))