]> code.delx.au - gnu-emacs/commitdiff
(math-oper-table): Lower precedence of negation for C, TeX, and eqn.
authorJay Belanger <jay.p.belanger@gmail.com>
Sat, 27 Oct 2007 20:25:45 +0000 (20:25 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sat, 27 Oct 2007 20:25:45 +0000 (20:25 +0000)
lisp/calc/calc-lang.el

index efaf17ecae89ee2446f6e4b04efa4d615f7e70c4..3871a1b0f098b61bf16aacfc43350f1232b42aee 100644 (file)
    (message "`C' language mode")))
 
 (put 'c 'math-oper-table
-  '( ( "u+"    ident        -1 1000 )
-     ( "u-"    neg          -1 1000 )
-     ( "u!"    calcFunc-lnot -1 1000 )
+  '( ( "u!"    calcFunc-lnot -1 1000 )
      ( "~"     calcFunc-not  -1 1000 )
+     ( "u+"    ident        -1  197 )
+     ( "u-"    neg          -1  197 )
      ( "*"     *            190 191 )
      ( "/"     /            190 191 )
      ( "%"     %            190 191 )
            "LaTeX language mode with \\func(\\text{var}) and multiline matrices")))))
 
 (put 'tex 'math-oper-table
-  '( ( "u+"       ident                   -1 1000 )
-     ( "u-"       neg             -1 1000 )
-     ( "\\hat"    calcFunc-hat     -1  950 )
+  '( ( "\\hat"    calcFunc-hat     -1  950 )
      ( "\\check"  calcFunc-check   -1  950 )
      ( "\\tilde"  calcFunc-tilde   -1  950 )
      ( "\\acute"  calcFunc-acute   -1  950 )
      ( "!"        calcFunc-fact           210  -1 )
      ( "^"       ^                201 200 )
      ( "_"       calcFunc-subscr  201 200 )
+     ( "u+"       ident                   -1  197 )
+     ( "u-"       neg             -1  197 )
      ( "\\times"  *               191 190 )
      ( "*"        *               191 190 )
      ( "2x"      *                191 190 )
    (message "Eqn language mode")))
 
 (put 'eqn 'math-oper-table
-  '( ( "u+"       ident                   -1 1000 )
-     ( "u-"       neg             -1 1000 )
-     ( "prime"    (math-parse-eqn-prime) 950  -1 )
+  '( ( "prime"    (math-parse-eqn-prime) 950  -1 )
      ( "prime"    calcFunc-Prime   950  -1 )
      ( "dot"      calcFunc-dot     950  -1 )
      ( "dotdot"   calcFunc-dotdot  950  -1 )
      ( "right ceil"  closing        0   -1 )
      ( "+-"      sdev             300 300 )
      ( "!"        calcFunc-fact           210  -1 )
+     ( "u+"       ident                   -1  197 )
+     ( "u-"       neg             -1  197 )
      ( "times"    *               191 190 )
      ( "*"        *               191 190 )
      ( "2x"      *                191 190 )