# HG changeset patch # User Juanma Barranquero # Date 1227573047 0 # Node ID 2796739a5e4f4d114e81f217688c5eafcabd9d35 # Parent d9a2d006b7173eb5be35d25c882334d5304baf08 * calculator.el (calculator-op-or-exp): Reflow docstring. (calculator-remove-zeros, calculator-repR, calculator-repL): Fix typos in docstrings. diff -r d9a2d006b717 -r 2796739a5e4f lisp/ChangeLog --- a/lisp/ChangeLog Mon Nov 24 23:19:29 2008 +0000 +++ b/lisp/ChangeLog Tue Nov 25 00:30:47 2008 +0000 @@ -1,3 +1,9 @@ +2008-11-25 Juanma Barranquero + + * calculator.el (calculator-op-or-exp): Reflow docstring. + (calculator-remove-zeros, calculator-repR, calculator-repL): + Fix typos in docstrings. + 2008-11-24 Chong Yidong * log-view.el (log-view-annotate-version): Let vc-annotate manage diff -r d9a2d006b717 -r 2796739a5e4f lisp/calculator.el --- a/lisp/calculator.el Mon Nov 24 23:19:29 2008 +0000 +++ b/lisp/calculator.el Tue Nov 25 00:30:47 2008 +0000 @@ -996,8 +996,8 @@ (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)) @@ -1457,8 +1457,7 @@ (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 @@ -1755,7 +1754,7 @@ (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 @@ -1765,7 +1764,7 @@ 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 @@ -1807,7 +1806,7 @@ ;; If y is odd -1.0e+INF) (t - ;; + ;; 1.0e+INF))) (error 0.0e+NaN)))