summaryrefslogtreecommitdiff
path: root/lisp/calc/calc.el
diff options
context:
space:
mode:
authorJohn Paul Wallington <jpw@pobox.com>2008-06-28 14:19:02 +0000
committerJohn Paul Wallington <jpw@pobox.com>2008-06-28 14:19:02 +0000
commitd7ad7a5ec1727cacfdca4d626d200501c97cef4d (patch)
tree7ae4e55ae4b9a188316b1039f205298c167db5e1 /lisp/calc/calc.el
parent5da241082ecbe0992c0bf3a2021137d4b27a5e2a (diff)
downloademacs-d7ad7a5ec1727cacfdca4d626d200501c97cef4d.tar.gz
emacs-d7ad7a5ec1727cacfdca4d626d200501c97cef4d.tar.bz2
emacs-d7ad7a5ec1727cacfdca4d626d200501c97cef4d.zip
(defmath): Add `doc-string' decl. Add docstring.
Diffstat (limited to 'lisp/calc/calc.el')
-rw-r--r--lisp/calc/calc.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index f1fc2c411a0..0721e8a983f 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -3663,6 +3663,17 @@ Also looks for the equivalent TeX words, \\gets and \\evalto."
;;;###autoload
(defmacro defmath (func args &rest body) ; [Public]
+ "Define Calc function.
+
+Like `defun' except that code in the body of the definition can
+make use of the full range of Calc data types and the usual
+arithmetic operations are converted to their Calc equivalents.
+
+The prefix `calcFunc-' is added to the specified name to get the
+actual Lisp function name.
+
+See Info node `(calc)Defining Functions'."
+ (declare (doc-string 3))
(require 'calc-ext)
(math-do-defmath func args body))