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 <>
* progmodes/autoconf.el (autoconf-definition-regexp):
......@@ -497,11 +497,11 @@
(defun calc-set-simplify-mode (mode arg msg)
(calc-change-mode 'calc-simplify-mode
(if arg
(and (> (prefix-numeric-value arg) 0)
(and (not (eq calc-simplify-mode mode))
(arg mode)
((eq calc-simplify-mode mode)
(t mode)))
(message "%s" (if (eq calc-simplify-mode mode)
"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