+2008-11-25 Juanma Barranquero <lekktu@gmail.com>
+
+ * calculator.el (calculator-op-or-exp): Reflow docstring.
+ (calculator-remove-zeros, calculator-repR, calculator-repL):
+ Fix typos in docstrings.
+
2008-11-24 Chong Yidong <cyd@stupidchicken.com>
* log-view.el (log-view-annotate-version): Let vc-annotate manage
(calculator-standard-displayer 'right (cadr disp))))))))
(defun calculator-remove-zeros (numstr)
- "Get a number string NUMSTR and remove unnecessary zeroes.
-the behavior of this function is controlled by
+ "Get a number string NUMSTR and remove unnecessary zeros.
+The behavior of this function is controlled by
`calculator-remove-zeros'."
(cond ((and (eq calculator-remove-zeros t)
(string-match "\\.0+\\([eE][+-]?[0-9]*\\)?$" numstr))
(defun calculator-op-or-exp ()
"Either enter an operator or a digit.
Used with +/- for entering them as digits in numbers like 1e-3 (there is
-no need for negative numbers since these are handled by unary
-operators)."
+no need for negative numbers since these are handled by unary operators)."
(interactive)
(if (and (not calculator-display-fragile)
calculator-curnum
(calculator-quit))
(defun calculator-repR (x)
- "Repeats the last binary operation with its second argument and X.
+ "Repeat the last binary operation with its second argument and X.
To use this, apply a binary operator (evaluate it), then call this."
(if calculator-last-opXY
;; avoid rebinding calculator-last-opXY
x))
(defun calculator-repL (x)
- "Repeats the last binary operation with its first argument and X.
+ "Repeat the last binary operation with its first argument and X.
To use this, apply a binary operator (evaluate it), then call this."
(if calculator-last-opXY
;; avoid rebinding calculator-last-opXY
;; If y is odd
-1.0e+INF)
(t
- ;;
+ ;;
1.0e+INF)))
(error 0.0e+NaN)))