Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a0f95636
Commit
a0f95636
authored
Aug 01, 2012
by
Jay Belanger
Browse files
calc-mode.el (calc-set-simplify-mode): Use `cond' instead of nested `if's.
parent
bb2e3a6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/calc/calc-mode.el
lisp/calc/calc-mode.el
+5
-5
No files found.
lisp/ChangeLog
View file @
a0f95636
2012-08-01 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-mode.el (calc-set-simplify-mode): Use `cond' instead
of nested `if's.
2012-08-01 Glenn Morris <rgm@gnu.org>
* progmodes/autoconf.el (autoconf-definition-regexp):
...
...
lisp/calc/calc-mode.el
View file @
a0f95636
...
...
@@ -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
)
mode
)
(
and
(
not
(
eq
calc-simplify-mode
mode
)
)
mode
)))
(
cond
(
arg
mode
)
((
eq
calc-simplify-mode
mode
)
'alg
)
(
t
mode
)))
(
message
"%s"
(
if
(
eq
calc-simplify-mode
mode
)
msg
"Algebraic simplification occurs by default"
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment