diff options
| author | John Paul Wallington | 2008-06-28 14:19:02 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2008-06-28 14:19:02 +0000 |
| commit | d7ad7a5ec1727cacfdca4d626d200501c97cef4d (patch) | |
| tree | 7ae4e55ae4b9a188316b1039f205298c167db5e1 | |
| parent | 5da241082ecbe0992c0bf3a2021137d4b27a5e2a (diff) | |
| download | emacs-d7ad7a5ec1727cacfdca4d626d200501c97cef4d.tar.gz emacs-d7ad7a5ec1727cacfdca4d626d200501c97cef4d.zip | |
(defmath): Add `doc-string' decl. Add docstring.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/calc/calc.el | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 30055bf16d5..855b53ab908 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-06-28 John Paul Wallington <jpw@pobox.com> | ||
| 2 | |||
| 3 | * calc/calc.el (defmath): Add `doc-string' decl. Add docstring. | ||
| 4 | |||
| 1 | 2008-06-28 Michael Albinus <michael.albinus@gmx.de> | 5 | 2008-06-28 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * net/tramp.el (tramp-handle-file-modes): Handle symlinks. | 7 | * net/tramp.el (tramp-handle-file-modes): Handle symlinks. |
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." | |||
| 3663 | 3663 | ||
| 3664 | ;;;###autoload | 3664 | ;;;###autoload |
| 3665 | (defmacro defmath (func args &rest body) ; [Public] | 3665 | (defmacro defmath (func args &rest body) ; [Public] |
| 3666 | "Define Calc function. | ||
| 3667 | |||
| 3668 | Like `defun' except that code in the body of the definition can | ||
| 3669 | make use of the full range of Calc data types and the usual | ||
| 3670 | arithmetic operations are converted to their Calc equivalents. | ||
| 3671 | |||
| 3672 | The prefix `calcFunc-' is added to the specified name to get the | ||
| 3673 | actual Lisp function name. | ||
| 3674 | |||
| 3675 | See Info node `(calc)Defining Functions'." | ||
| 3676 | (declare (doc-string 3)) | ||
| 3666 | (require 'calc-ext) | 3677 | (require 'calc-ext) |
| 3667 | (math-do-defmath func args body)) | 3678 | (math-do-defmath func args body)) |
| 3668 | 3679 | ||