Mercurial > emacs
changeset 99899:2796739a5e4f
* calculator.el (calculator-op-or-exp): Reflow docstring.
(calculator-remove-zeros, calculator-repR, calculator-repL):
Fix typos in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 00:30:47 +0000 |
parents | d9a2d006b717 |
children | f42d7c051576 |
files | lisp/ChangeLog lisp/calculator.el |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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
--- 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)))