Function: math-integer-plus
math-integer-plus is an autoloaded and byte-compiled function defined
in calc-alg.el.gz.
Signature
(math-integer-plus EXPR)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-alg.el.gz
; not perfect, but it'll do
(defun math-integer-plus (expr)
(cond ((Math-integerp expr)
(list 0 expr))
((and (memq (car expr) '(+ -))
(Math-integerp (nth 1 expr)))
(list (if (eq (car expr) '+) (nth 2 expr) (math-neg (nth 2 expr)))
(nth 1 expr)))
((and (memq (car expr) '(+ -))
(Math-integerp (nth 2 expr)))
(list (nth 1 expr)
(if (eq (car expr) '+) (nth 2 expr) (math-neg (nth 2 expr)))))
(t nil)))