summaryrefslogtreecommitdiff
path: root/lisp/calc
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2020-10-11 18:28:39 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2020-10-13 11:29:01 +0200
commitadd1314195b193f04164cebe558d7a185b61de96 (patch)
tree92fe20f12c08332c94a2a932009fd61ae836f15d /lisp/calc
parent721b8468d28fec84a63bbef9da9f2016670decdc (diff)
downloademacs-add1314195b193f04164cebe558d7a185b61de96.tar.gz
Calc: revert to old precedence of '/' in (La)TeX input mode
Make the '/' precedence higher than that of '+' and '-' again, partially reverting fda9b316f84 (bug#43902). * lisp/calc/calc-lang.el (tex): Change precedence of '/'. * test/lisp/calc/calc-tests.el (calc-latex-input): New test.
Diffstat (limited to 'lisp/calc')
-rw-r--r--lisp/calc/calc-lang.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el
index 1c270cfc243..bde5abe649f 100644
--- a/lisp/calc/calc-lang.el
+++ b/lisp/calc/calc-lang.el
@@ -468,10 +468,10 @@
( "\\times" * 191 190 )
( "*" * 191 190 )
( "2x" * 191 190 )
+ ( "/" / 185 186 )
( "+" + 180 181 )
( "-" - 180 181 )
( "\\over" / 170 171 )
- ( "/" / 170 171 )
( "\\choose" calcFunc-choose 170 171 )
( "\\mod" % 170 171 )
( "<" calcFunc-lt 160 161 )