]> git.eshelyaron.com Git - emacs.git/commitdiff
(defmath): Add `doc-string' decl. Add docstring.
authorJohn Paul Wallington <jpw@pobox.com>
Sat, 28 Jun 2008 14:19:02 +0000 (14:19 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Sat, 28 Jun 2008 14:19:02 +0000 (14:19 +0000)
lisp/ChangeLog
lisp/calc/calc.el

index 30055bf16d5acfea62db8395bbfa18a10a4e11ee..855b53ab908948e30e33d1b92b14bfcd1b9fc23d 100644 (file)
@@ -1,3 +1,7 @@
+2008-06-28  John Paul Wallington  <jpw@pobox.com>
+
+       * calc/calc.el (defmath): Add `doc-string' decl.  Add docstring.
+
 2008-06-28  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-handle-file-modes): Handle symlinks.
index f1fc2c411a007159d140229bf0c1829d2842475d..0721e8a983f8753d9c65caa2bfc4a54429856bad 100644 (file)
@@ -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))