diff options
| author | Jay Belanger <jay.p.belanger@gmail.com> | 2007-06-20 04:12:15 +0000 | 
|---|---|---|
| committer | Jay Belanger <jay.p.belanger@gmail.com> | 2007-06-20 04:12:15 +0000 | 
| commit | 16819e4854be13e976bd8845c46562ccec3ffe5b (patch) | |
| tree | fb8e668b9293424e0f7a50a7d8a6c4d98e578c06 /lisp | |
| parent | 515e955e0a0efea90913b8bca66923e34c8f925e (diff) | |
| download | emacs-16819e4854be13e976bd8845c46562ccec3ffe5b.tar.gz | |
(calc-do-calc-eval): Let math-expr-opers equal the function
math-standard-ops rather than the variable math-standard-opers.
(calc-algebraic-entry): Let math-expr-opers equal math-standard-ops or
math-expr-ops, as appropriate.
(math-expr-read-level,math-read-factor): Let math-expr-opers equal
math-expr-ops.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/calc/calc-aent.el | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/lisp/calc/calc-aent.el b/lisp/calc/calc-aent.el index 4b954fabd0c..be77030c914 100644 --- a/lisp/calc/calc-aent.el +++ b/lisp/calc/calc-aent.el @@ -100,7 +100,7 @@        (cond         ((and (consp str) (not (symbolp (car str))))  	(let ((calc-language nil) -	      (math-expr-opers math-standard-opers) +	      (math-expr-opers (math-standard-ops))  	      (calc-internal-prec 12)  	      (calc-word-size 32)  	      (calc-symbolic-mode nil) @@ -254,7 +254,7 @@ The value t means abort and give an error message.")    (interactive "P")    (calc-wrapper     (let ((calc-language (if prefix nil calc-language)) -	 (math-expr-opers (if prefix math-standard-opers math-expr-opers))) +	 (math-expr-opers (if prefix (math-standard-ops) (math-expr-ops))))       (calc-alg-entry (and auto (char-to-string last-command-char))))))  (defvar calc-alg-entry-history nil @@ -876,7 +876,10 @@ in Calc algebraic input.")  		calcFunc-eq calcFunc-neq))  (defun math-read-expr-level (exp-prec &optional exp-term) -  (let* ((x (math-read-factor)) (first t) op op2) +  (let* ((math-expr-opers (math-expr-ops)) +         (x (math-read-factor))  +         (first t)  +         op op2)      (while (and (or (and calc-user-parse-table  			 (setq op (calc-check-user-syntax x exp-prec))  			 (setq x op @@ -1121,7 +1124,8 @@ in Calc algebraic input.")  	(assoc math-expr-data '(("(") ("[") ("{"))))))  (defun math-read-factor () -  (let (op) +  (let ((math-expr-opers (math-expr-ops)) +        op)      (cond ((eq math-exp-token 'number)  	   (let ((num (math-read-number math-expr-data)))  	     (if (not num) | 
