Commit a0f95636 authored by Jay Belanger's avatar Jay Belanger
Browse files

calc-mode.el (calc-set-simplify-mode): Use `cond' instead of nested `if's.

parent bb2e3a6e
2012-08-01 Jay Belanger <>
* calc/calc-mode.el (calc-set-simplify-mode): Use `cond' instead
of nested `if's.
2012-08-01 Glenn Morris <> 2012-08-01 Glenn Morris <>
* progmodes/autoconf.el (autoconf-definition-regexp): * progmodes/autoconf.el (autoconf-definition-regexp):
...@@ -497,11 +497,11 @@ ...@@ -497,11 +497,11 @@
(defun calc-set-simplify-mode (mode arg msg) (defun calc-set-simplify-mode (mode arg msg)
(calc-change-mode 'calc-simplify-mode (calc-change-mode 'calc-simplify-mode
(if arg (cond
(and (> (prefix-numeric-value arg) 0) (arg mode)
mode) ((eq calc-simplify-mode mode)
(and (not (eq calc-simplify-mode mode)) 'alg)
mode))) (t mode)))
(message "%s" (if (eq calc-simplify-mode mode) (message "%s" (if (eq calc-simplify-mode mode)
msg msg
"Algebraic simplification occurs by default"))) "Algebraic simplification occurs by default")))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment